From ec5aa2bb40232e8273e5560b59612ac819467222 Mon Sep 17 00:00:00 2001 From: ishowvel Date: Sun, 27 Oct 2024 08:20:36 +0000 Subject: [PATCH 01/19] feat: add a config prop 'aggressiveFollowUps' to follow up based on priority level --- src/helpers/task-metadata.ts | 42 ++++++++++++++++++++++++++++++++++++ src/helpers/task-update.ts | 9 ++++---- src/types/plugin-input.ts | 4 ++++ 3 files changed, 51 insertions(+), 4 deletions(-) diff --git a/src/helpers/task-metadata.ts b/src/helpers/task-metadata.ts index bdbcb3b..4697cdb 100644 --- a/src/helpers/task-metadata.ts +++ b/src/helpers/task-metadata.ts @@ -108,3 +108,45 @@ function parseTimeLabel( return taskTimeEstimate; } + +export function parsePriorityLabel( + labels: ( + | string + | { + id?: number; + node_id?: string; + url?: string; + name?: string; + description?: string | null; + color?: string | null; + default?: boolean; + } + )[] +): number { + let taskPriorityEstimate = 0; + + for (const label of labels) { + let priorityLabel = ""; + if (typeof label === "string") { + priorityLabel = label; + } else { + priorityLabel = label.name || ""; + } + + if (priorityLabel.startsWith("Priority:")) { + const matched = priorityLabel.match(/Priority: (\d+)/i); + if (!matched) { + return 0; + } + + const [_, urgency] = matched; + taskPriorityEstimate = Number(urgency); + } + + if (taskPriorityEstimate) { + break; + } + } + + return taskPriorityEstimate; +} diff --git a/src/helpers/task-update.ts b/src/helpers/task-update.ts index 6c5ad7c..592d6e5 100644 --- a/src/helpers/task-update.ts +++ b/src/helpers/task-update.ts @@ -8,7 +8,7 @@ import { getAssigneesActivityForIssue } from "./get-assignee-activity"; import { parseIssueUrl } from "./github-url"; import { remindAssigneesForIssue, unassignUserFromIssue } from "./remind-and-remove"; import { getCommentsFromMetadata } from "./structured-metadata"; -import { getTaskAssignmentDetails } from "./task-metadata"; +import { getTaskAssignmentDetails, parsePriorityLabel } from "./task-metadata"; const getMostRecentActivityDate = (assignedEventDate: DateTime, activityEventDate?: DateTime): DateTime => { return activityEventDate && activityEventDate > assignedEventDate ? activityEventDate : assignedEventDate; @@ -18,7 +18,7 @@ export async function updateTaskReminder(context: ContextPlugin, repo: ListForOr const { octokit, logger, - config: { eventWhitelist, warning, disqualification }, + config: { eventWhitelist, warning, disqualification, prioritySpeed }, } = context; const handledMetadata = await getTaskAssignmentDetails(context, repo, issue); const now = DateTime.local(); @@ -46,6 +46,7 @@ export async function updateTaskReminder(context: ContextPlugin, repo: ListForOr .shift(); const assignedDate = DateTime.fromISO(assignedEvent.created_at); + const priorityLevel = parsePriorityLabel(issue.labels); const activityDate = activityEvent?.created_at ? DateTime.fromISO(activityEvent.created_at) : undefined; let mostRecentActivityDate = getMostRecentActivityDate(assignedDate, activityDate); @@ -75,13 +76,13 @@ export async function updateTaskReminder(context: ContextPlugin, repo: ListForOr if (lastReminderComment) { const lastReminderTime = DateTime.fromISO(lastReminderComment.created_at); mostRecentActivityDate = lastReminderTime > mostRecentActivityDate ? lastReminderTime : mostRecentActivityDate; - if (mostRecentActivityDate.plus({ milliseconds: disqualificationTimeDifference }) <= now) { + if (mostRecentActivityDate.plus({ milliseconds: prioritySpeed ? disqualificationTimeDifference / priorityLevel : disqualificationTimeDifference }) <= now) { await unassignUserFromIssue(context, issue); } else { logger.info(`Reminder was sent for ${issue.html_url} already, not beyond disqualification deadline yet.`); } } else { - if (mostRecentActivityDate.plus({ milliseconds: warning }) <= now) { + if (mostRecentActivityDate.plus({ milliseconds: prioritySpeed ? warning / priorityLevel : warning }) <= now) { await remindAssigneesForIssue(context, issue); } else { logger.info(`Nothing to do for ${issue.html_url}, still within due-time.`); diff --git a/src/types/plugin-input.ts b/src/types/plugin-input.ts index fe0e96a..97509b7 100644 --- a/src/types/plugin-input.ts +++ b/src/types/plugin-input.ts @@ -66,6 +66,10 @@ export const pluginSettingsSchema = T.Object( }, { default: {} } ), + /* + * Whether to rush the follow ups by the priority level + */ + prioritySpeed: T.Boolean({ default: true }), /** * Delay to unassign users. 0 means disabled. Any other value is counted in days, e.g. 7 days */ From 5b0ac71621645b7155c295a1b494af59182c25bf Mon Sep 17 00:00:00 2001 From: ishowvel Date: Mon, 28 Oct 2024 04:14:07 +0000 Subject: [PATCH 02/19] chore: testing --- src/helpers/task-update.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/task-update.ts b/src/helpers/task-update.ts index 592d6e5..e25d7ac 100644 --- a/src/helpers/task-update.ts +++ b/src/helpers/task-update.ts @@ -72,7 +72,8 @@ export async function updateTaskReminder(context: ContextPlugin, repo: ListForOr }); const disqualificationTimeDifference = disqualification - warning; - + console.log(disqualificationTimeDifference); + console.log(prioritySpeed ? disqualificationTimeDifference / priorityLevel : disqualificationTimeDifference); if (lastReminderComment) { const lastReminderTime = DateTime.fromISO(lastReminderComment.created_at); mostRecentActivityDate = lastReminderTime > mostRecentActivityDate ? lastReminderTime : mostRecentActivityDate; From 4a0086682d8da1d0305a6ab53017c6ecfed1d3bd Mon Sep 17 00:00:00 2001 From: ishowvel Date: Tue, 29 Oct 2024 06:32:42 +0000 Subject: [PATCH 03/19] fix: support for tests --- src/types/database.ts | 0 tests/__mocks__/results/valid-configuration.json | 1 + tests/main.test.ts | 1 + 3 files changed, 2 insertions(+) create mode 100644 src/types/database.ts diff --git a/src/types/database.ts b/src/types/database.ts new file mode 100644 index 0000000..e69de29 diff --git a/tests/__mocks__/results/valid-configuration.json b/tests/__mocks__/results/valid-configuration.json index cbe85c8..9b50645 100644 --- a/tests/__mocks__/results/valid-configuration.json +++ b/tests/__mocks__/results/valid-configuration.json @@ -1,6 +1,7 @@ { "warning": "3.5 days", "disqualification": "7 days", + "prioritySpeed": true, "watch": { "optOut": ["private-repo"] }, diff --git a/tests/main.test.ts b/tests/main.test.ts index 41f732f..c3495eb 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -279,6 +279,7 @@ function createContext(issueId: number, senderId: number, optOut = [STRINGS.PRIV config: { disqualification: ONE_DAY * 7, warning: ONE_DAY * 3.5, + prioritySpeed: true, watch: { optOut }, eventWhitelist: ["review_requested", "ready_for_review", "commented", "committed"], pullRequestRequired: false, From 3ed64c293ebd5e965cfa1dbae0b5314880c807ec Mon Sep 17 00:00:00 2001 From: ishowvel Date: Tue, 29 Oct 2024 06:33:34 +0000 Subject: [PATCH 04/19] chore: remove typing file --- src/types/database.ts | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/types/database.ts diff --git a/src/types/database.ts b/src/types/database.ts deleted file mode 100644 index e69de29..0000000 From 2f5a256555b9257da2e7d589ee9d7f84ade23084 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 06:33:50 +0000 Subject: [PATCH 05/19] chore: updated manifest.json and dist build --- dist/index.js | 2 +- manifest.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index f537c2e..5892917 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc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AJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhw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AAAAADxAREhMUAAtBHiEQDL0DC0ICIREM5QELQgMhEQzkAQtCBCERDOMBC0IFIREM4gELQgYhEQzhAQtCByERDOABC0IIIREM3wELQgkhEQzeAQtCCiERDN0BC0ILIREM3AELQgwhEQzbAQtCDSERDNoBC0IOIREM2QELQg8hEQzYAQtCCiERDNcBC0ILIREM1gELQgwhEQzVAQtCDSERDNQBC0IOIREM0wELQg8hEQzSAQtCACERAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQLQAAQVBqDjflAeQBAAECAwQFBgfmAeYB5gHmAeYB5gHmAQgJCgsMDeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gEODxAREhPmAQtCAiERDOQBC0IDIREM4wELQgQhEQziAQtCBSERDOEBC0IGIREM4AELQgchEQzfAQtCCCERDN4BC0IJIREM3QELQgohEQzcAQtCCyERDNsBC0IMIREM2gELQg0hEQzZAQtCDiERDNgBC0IPIREM1wELQgohEQzWAQtCCyERDNUBC0IMIREM1AELQg0hEQzTAQtCDiERDNIBC0IPIREM0QELIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN0gFBHyEQDMADCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEkIRAMpwMLQSAhEAy/AwsgACABIhAgAhC+gICAAEF/ag4FtgEAxQIB0QHSAQtBESEQDKQDCyAAQQE6AC8gECEBDLsDCyABIgEgAkcN0gFBJCEQDLsDCyABIg0gAkcNHkHGACEQDLoDCyAAIAEiASACELKAgIAAIhAN1AEgASEBDLUBCyABIhAgAkcNJkHQACEQDLgDCwJAIAEiASACRw0AQSghEAy4AwsgAEEANgIEIABBjICAgAA2AgggACABIAEQsYCAgAAiEA3TASABIQEM2AELAkAgASIQIAJHDQBBKSEQDLcDCyAQLQAAIgFBIEYNFCABQQlHDdMBIBBBAWohAQwVCwJAIAEiASACRg0AIAFBA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IAAgATYCFCAAIBA2AgxBACEQDLMBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEE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BIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC0kBAXsgAEEQav0MAAAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBEx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ASEQDCILQaMBIRAMIQtBpAEhEAwgC0GlASEQDB8LQaYBIRAMHgtBpwEhEAwdC0GoASEQDBwLQakBIRAMGwtBqgEhEAwaC0GrASEQDBkLQawBIRAMGAtBrQEhEAwXC0GuASEQDBYLQQEhEAwVC0GvASEQDBQLQbABIRAMEwtBsQEhEAwSC0GzASEQDBELQbIBIRAMEAtBtAEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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Rw14QeYAIRAM+QMLIAEiASACRw0aQRghEAz4AwsgASIBIAJHDRRBEiEQDPcDCyABIgEgAkcNWUHFACEQDPYDCyABIgEgAkcNSkE/IRAM9QMLIAEiASACRw1IQTwhEAz0AwsgASIBIAJHDUFBMSEQDPMDCyAALQAuQQFGDesDDIcCCyAAIAEiASACEMCAgIAAQQFHDeYBIABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA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tgICAACIEDQAgASEBDKcBCyAAQd4ANgIcIAAgATYCFCAAIAQ2AgxBACEQDLoBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKUEjTw0AIAEhAQxZCyAAQQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0B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FNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a}}=e;const c=await getTaskAssignmentDetails(e,t,r);const u=DateTime.local();if(!c)return;const A=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const l=A.filter((e=>e.event==="assigned"&&c.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!l){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const d=(await getAssigneesActivityForIssue(e,r,c.taskAssignees)).filter((e=>o.includes(e.event))).shift();const p=DateTime.fromISO(l.created_at);const g=d?.created_at?DateTime.fromISO(d.created_at):undefined;let h=getMostRecentActivityDate(p,g);const m=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));m.push(r.html_url);const E=await Promise.all(m.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>h))})));const y=E.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:u.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(l.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:y?DateTime.fromISO(y.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:h.toLocaleString(DateTime.DATETIME_MED)});const I=a-i;if(y){const t=DateTime.fromISO(y.created_at);h=t>h?t:h;if(h.plus({milliseconds:I})<=u){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(h.plus({milliseconds:i})<=u){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url}, still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Priority:")){const r=e.match(/Priority: (\d+)/i);if(!r){return 0}const[n,s]=r;t=Number(s)}if(t){break}}return t}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=p?.created_at?DateTime.fromISO(p.created_at):undefined;let E=getMostRecentActivityDate(g,m);const y=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));y.push(r.html_url);const I=await Promise.all(y.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>E))})));const C=I.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:C?DateTime.fromISO(C.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:E.toLocaleString(DateTime.DATETIME_MED)});const b=a-i;console.log(b);console.log(c?b/h:b);if(C){const t=DateTime.fromISO(C.created_at);E=t>E?t:E;if(E.plus({milliseconds:c?b/h:b})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(E.plus({milliseconds:c?i/h:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url}, still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file diff --git a/manifest.json b/manifest.json index f26c977..596e18a 100644 --- a/manifest.json +++ b/manifest.json @@ -23,6 +23,10 @@ } } }, + "prioritySpeed": { + "default": true, + "type": "boolean" + }, "disqualification": { "default": "7 days", "type": "string" From 40389a5ec35ce785a92c62590bf36975f9020084 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 06:34:47 +0000 Subject: [PATCH 06/19] chore: updated manifest.json and dist build From cbb4db55d3c24ede632a8934d50005cba113d481 Mon Sep 17 00:00:00 2001 From: ishowvel Date: Tue, 29 Oct 2024 06:35:05 +0000 Subject: [PATCH 07/19] chore: remove clogs --- src/helpers/task-update.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/helpers/task-update.ts b/src/helpers/task-update.ts index e25d7ac..592d6e5 100644 --- a/src/helpers/task-update.ts +++ b/src/helpers/task-update.ts @@ -72,8 +72,7 @@ export async function updateTaskReminder(context: ContextPlugin, repo: ListForOr }); const disqualificationTimeDifference = disqualification - warning; - console.log(disqualificationTimeDifference); - console.log(prioritySpeed ? disqualificationTimeDifference / priorityLevel : disqualificationTimeDifference); + if (lastReminderComment) { const lastReminderTime = DateTime.fromISO(lastReminderComment.created_at); mostRecentActivityDate = lastReminderTime > mostRecentActivityDate ? lastReminderTime : mostRecentActivityDate; From 8a59c19deebd05d8db588d932c662a2672cb41fd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 06:36:35 +0000 Subject: [PATCH 08/19] chore: updated manifest.json and dist build --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 5892917..324e8f3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA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CQCABIhAgAkcNAEEcIRAM2AMLQgAhESAQIQEgEC0AAEFQag435wHmAQECAwQFBgcIAAAAAAAAAAkKCwwNDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADxAREhMUAAtBHiEQDL0DC0ICIREM5QELQgMhEQzkAQtCBCERDOMBC0IFIREM4gELQgYhEQzhAQtCByERDOABC0IIIREM3wELQgkhEQzeAQtCCiERDN0BC0ILIREM3AELQgwhEQzbAQtCDSERDNoBC0IOIREM2QELQg8hEQzYAQtCCiERDNcBC0ILIREM1gELQgwhEQzVAQtCDSERDNQBC0IOIREM0wELQg8hEQzSAQtCACERAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQLQAAQVBqDjflAeQBAAECAwQFBgfmAeYB5gHmAeYB5gHmAQgJCgsMDeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gEODxAREhPmAQtCAiERDOQBC0IDIREM4wELQgQhEQziAQtCBSERDOEBC0IGIREM4AELQgchEQzfAQtCCCERDN4BC0IJIREM3QELQgohEQzcAQtCCyERDNsBC0IMIREM2gELQg0hEQzZAQtCDiERDNgBC0IPIREM1wELQgohEQzWAQtCCyERDNUBC0IMIREM1AELQg0hEQzTAQtCDiERDNIBC0IPIREM0QELIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN0gFBHyEQDMADCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEkIRAMpwMLQSAhEAy/AwsgACABIhAgAhC+gICAAEF/ag4FtgEAxQIB0QHSAQtBESEQDKQDCyAAQQE6AC8gECEBDLsDCyABIgEgAkcN0gFBJCEQDLsDCyABIg0gAkcNHkHGACEQDLoDCyAAIAEiASACELKAgIAAIhAN1AEgASEBDLUBCyABIhAgAkcNJkHQACEQDLgDCwJAIAEiASACRw0AQSghEAy4AwsgAEEANgIEIABBjICAgAA2AgggAC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BADYCHCAAIAE2AhQgAEG5jYCAADYCECAAQRo2AgxBACEQDLQBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxUCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLMBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA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gIIIAEgAjYCDCABIAA2AggPC0EfIQICQCAAQf///wdLDQAgAEEIdiICIAJBgP4/akEQdkEIcSICdCIEIARBgOAfakEQdkEEcSIEdCIGIAZBgIAPakEQdkECcSIGdEEPdiACIARyIAZyayICQQF0IAAgAkEVanZBAXFyQRxqIQILIAEgAjYCHCABQgA3AhAgAkECdEG40oCAAGohBAJAAkBBACgCjNCAgAAiBkEBIAJ0IgNxDQAgBCABNgIAQQAgBiADcjYCjNCAgAAgASAENgIYIAEgATYCCCABIAE2AgwMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgBCgCACEGAkADQCAGIgQoAgRBeHEgAEYNASACQR12IQYgAkEBdCECIAQgBkEEcWpBEGoiAygCACIGDQALIAMgATYCACABIAQ2AhggASABNgIMIAEgATYCCAwBCyAEKAIIIgAgATYCDCAEIAE2AgggAUEANgIYIAEgBDYCDCABIAA2AggLQQBBACgCqNCAgABBf2oiAUF/IAEbNgKo0ICAAAsLBAAAAAtOAAJAIAANAD8AQRB0DwsCQCAAQf//A3ENACAAQX9MDQACQCAAQRB2QAAiAEF/Rw0AQQBBMDYC+NOAgABBfw8LIABBEHQPCxDKgICAAAAL8gICA38BfgJAIAJFDQAgACABOgAAIAIgAGoiA0F/aiABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBfWogAToAACADQX5qIAE6AAAgAkEHSQ0AIAAgAToAAyADQXxqIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIFayICQSBJDQAgAa1CgYCAgBB+IQYgAyAFaiEBA0AgASAGNwMYIAEgBjcDECABIAY3AwggASAGNwMAIAFBIG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tJyspCrLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABBnH9qDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWF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QMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC0kBAXsgAEEQav0MAAAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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DASEQDP4DCyABIgEgAkcNkAFB9wAhEAz9AwsgASIBIAJHDYYBQe8AIRAM/AMLIAEiASACRw1/QeoAIRAM+wMLIAEiASACRw17QegAIRAM+gMLIAEiASACRw14QeYAIRAM+QMLIAEiASACRw0aQRghEAz4AwsgASIBIAJHDRRBEiEQDPcDCyABIgEgAkcNWUHFACEQDPYDCyABIgEgAkcNSkE/IRAM9QMLIAEiASACRw1IQTwhEAz0AwsgASIBIAJHDUFBMSEQDPMDCyAALQAuQQFGDesDDIcCCyAAIAEiASACEMCAgIAAQQFHDeYBIABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIA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CFCAAIAQ2AgxBACEQDLsBCwJAIAEtAABBUGoiEEH/AXFBCk8NACAAIBA6ACogAUEBaiEBQc8AIRAMogELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKcBCyAAQd4ANgIcIAAgATYCFCAAIAQ2AgxBACEQDLoBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKUEjTw0AIAEhAQxZCyAAQQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYC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EVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Priority:")){const r=e.match(/Priority: (\d+)/i);if(!r){return 0}const[n,s]=r;t=Number(s)}if(t){break}}return t}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=p?.created_at?DateTime.fromISO(p.created_at):undefined;let E=getMostRecentActivityDate(g,m);const y=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));y.push(r.html_url);const I=await Promise.all(y.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>E))})));const C=I.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:C?DateTime.fromISO(C.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:E.toLocaleString(DateTime.DATETIME_MED)});const b=a-i;console.log(b);console.log(c?b/h:b);if(C){const t=DateTime.fromISO(C.created_at);E=t>E?t:E;if(E.plus({milliseconds:c?b/h:b})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(E.plus({milliseconds:c?i/h:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url}, still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Priority:")){const r=e.match(/Priority: (\d+)/i);if(!r){return 0}const[n,s]=r;t=Number(s)}if(t){break}}return t}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=p?.created_at?DateTime.fromISO(p.created_at):undefined;let E=getMostRecentActivityDate(g,m);const y=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));y.push(r.html_url);const I=await Promise.all(y.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>E))})));const C=I.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:C?DateTime.fromISO(C.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:E.toLocaleString(DateTime.DATETIME_MED)});const b=a-i;if(C){const t=DateTime.fromISO(C.created_at);E=t>E?t:E;if(E.plus({milliseconds:c?b/h:b})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(E.plus({milliseconds:c?i/h:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url}, still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file From ee68e377e219b9ab3cc4628783e13a428a198f68 Mon Sep 17 00:00:00 2001 From: ishowvel Date: Thu, 31 Oct 2024 05:03:00 +0000 Subject: [PATCH 09/19] fix: make a typing for issues and fix divide by 0 --- src/helpers/task-metadata.ts | 48 ++++++++---------------------------- src/helpers/task-update.ts | 5 ++-- 2 files changed, 13 insertions(+), 40 deletions(-) diff --git a/src/helpers/task-metadata.ts b/src/helpers/task-metadata.ts index 4697cdb..599d684 100644 --- a/src/helpers/task-metadata.ts +++ b/src/helpers/task-metadata.ts @@ -2,6 +2,11 @@ import { DateTime } from "luxon"; import ms from "ms"; import { ListForOrg, ListIssueForRepo } from "../types/github-types"; import { ContextPlugin } from "../types/plugin-input"; +import { RestEndpointMethodTypes } from "@octokit/rest"; + +type IssueLabel = Partial> & { + color?: string | null; +}; /** * Retrieves assignment events from the timeline of an issue and calculates the deadline based on the time label. @@ -67,20 +72,7 @@ export async function getTaskAssignmentDetails( return metadata; } -function parseTimeLabel( - labels: ( - | string - | { - id?: number; - node_id?: string; - url?: string; - name?: string; - description?: string | null; - color?: string | null; - default?: boolean; - } - )[] -): number { +function parseTimeLabel(labels: (IssueLabel | string)[]): number { let taskTimeEstimate = 0; for (const label of labels) { @@ -109,22 +101,7 @@ function parseTimeLabel( return taskTimeEstimate; } -export function parsePriorityLabel( - labels: ( - | string - | { - id?: number; - node_id?: string; - url?: string; - name?: string; - description?: string | null; - color?: string | null; - default?: boolean; - } - )[] -): number { - let taskPriorityEstimate = 0; - +export function parsePriorityLabel(labels: (IssueLabel | string)[]): number { for (const label of labels) { let priorityLabel = ""; if (typeof label === "string") { @@ -136,17 +113,12 @@ export function parsePriorityLabel( if (priorityLabel.startsWith("Priority:")) { const matched = priorityLabel.match(/Priority: (\d+)/i); if (!matched) { - return 0; + return 1; } - const [_, urgency] = matched; - taskPriorityEstimate = Number(urgency); - } - - if (taskPriorityEstimate) { - break; + return Number(matched[1]); } } - return taskPriorityEstimate; + return 1; } diff --git a/src/helpers/task-update.ts b/src/helpers/task-update.ts index 592d6e5..5ad166a 100644 --- a/src/helpers/task-update.ts +++ b/src/helpers/task-update.ts @@ -46,7 +46,8 @@ export async function updateTaskReminder(context: ContextPlugin, repo: ListForOr .shift(); const assignedDate = DateTime.fromISO(assignedEvent.created_at); - const priorityLevel = parsePriorityLabel(issue.labels); + const priorityValue = parsePriorityLabel(issue.labels); + const priorityLevel = priorityValue === 0 ? priorityValue + 1 : priorityValue; const activityDate = activityEvent?.created_at ? DateTime.fromISO(activityEvent.created_at) : undefined; let mostRecentActivityDate = getMostRecentActivityDate(assignedDate, activityDate); @@ -85,7 +86,7 @@ export async function updateTaskReminder(context: ContextPlugin, repo: ListForOr if (mostRecentActivityDate.plus({ milliseconds: prioritySpeed ? warning / priorityLevel : warning }) <= now) { await remindAssigneesForIssue(context, issue); } else { - logger.info(`Nothing to do for ${issue.html_url}, still within due-time.`); + logger.info(`Nothing to do for ${issue.html_url} still within due-time.`); } } } From 314d2816973fbbca4ba0f63e484ab9e8b5bac649 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 31 Oct 2024 05:05:02 +0000 Subject: [PATCH 10/19] chore: updated manifest.json and dist build --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 324e8f3..934e8af 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYW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8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQ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IRAMJgtBnwEhEAwlC0GgASEQDCQLQaEBIRAMIwtBogEhEAwiC0GjASEQDCELQaQBIRAMIAtBpQEhEAwfC0GmASEQDB4LQacBIRAMHQtBqAEhEAwcC0GpASEQDBsLQaoBIRAMGgtBqwEhEAwZC0GsASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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HCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB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AAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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utIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQDN0DCwJAIAEiASACRg0AIABBi4CAgAA2AgggACABNgIEIAEhAUEHIRAMxAMLQRkhEAzcAwsgAUEBaiEBDAILAkAgASIUIAJHDQBBGiEQDNsDCyAUIQECQCAULQAAQXNqDhTdAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAgDuAgtBACEQIABBADYCHCAAQa+LgIAANgIQIABBA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NgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIAB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AAwBCyACKAIIIQALIAAgATYCDCACIAE2AgggASACNgIMIAEgADYCCA8LQR8hAgJAIABB////B0sNACAAQQh2IgIgAkGA/j9qQRB2QQhxIgJ0IgQgBEGA4B9qQRB2QQRxIgR0IgYgBkGAgA9qQRB2QQJxIgZ0QQ92IAIgBHIgBnJrIgJBAXQgACACQRVqdkEBcXJBHGohAgsgASACNgIcIAFCADcCECACQQJ0QbjSgIAAaiEEAkACQEEAKAKM0ICAACIGQQEgAnQiA3ENACAEIAE2AgBBACAGIANyNgKM0ICAACABIAQ2AhggASABNgIIIAEgATYCDAwBCyAAQQBBGSACQQF2ayACQR9GG3QhAiAEKAIAIQYCQANAIAYiBCgCBEF4cSAARg0BIAJBHXYhBiACQQF0IQIgBCAGQQRxakEQaiIDKAIAIgYNAAsgAyABNgIAIAEgBDYCGCABIAE2AgwgASABNgIIDAELIAQoAggiACABNgIMIAQgATYCCCABQQA2AhggASAENgIMIAEgADYCCAtBAEEAKAKo0ICAAEF/aiIBQX8gARs2AqjQgIAACwsEAAAAC04AAkAgAA0APwBBEHQPCwJAIABB//8DcQ0AIABBf0wNAAJAIABBEHZAACIAQX9HDQBBAEEwNgL404CAAEF/DwsgAEEQdA8LEMqAgIAAAAvyAgIDfwF+AkAgAkUNACAAIAE6AAAgAiAAaiIDQX9qIAE6AAAgAkEDSQ0AIAAgAToAAiAAIAE6AAEgA0F9aiABOgAAIANBfmogAToAACACQQdJDQAgACABOgADIANBfGogAToAACACQQlJDQAgAEEAIABrQQNxIgRqIgMgAUH/AXFBgYKECGwiATYCACADIAIgBGtBfHEiBGoiAkF8aiABNgIAIARBCUkNACADIAE2AgggAyABNgIEIAJBeGogATYCACACQXRqIAE2AgAgBEEZSQ0AIAMgATYCGCADIAE2AhQgAyABNgIQIAMgATYCDCACQXBqIAE2AgAgAkFsaiABNgIAIAJBaGogATYCACACQWRqIAE2AgAgBCADQQRxQRhyIgVrIgJBIEkNACABrUKBgICAEH4hBiADIAVqIQEDQCABIAY3Axgg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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Priority:")){const r=e.match(/Priority: (\d+)/i);if(!r){return 0}const[n,s]=r;t=Number(s)}if(t){break}}return t}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=p?.created_at?DateTime.fromISO(p.created_at):undefined;let E=getMostRecentActivityDate(g,m);const y=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));y.push(r.html_url);const I=await Promise.all(y.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>E))})));const C=I.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:C?DateTime.fromISO(C.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:E.toLocaleString(DateTime.DATETIME_MED)});const b=a-i;if(C){const t=DateTime.fromISO(C.created_at);E=t>E?t:E;if(E.plus({milliseconds:c?b/h:b})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(E.plus({milliseconds:c?i/h:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url}, still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){for(const t of e){let e="";if(typeof t==="string"){e=t}else{e=t.name||""}if(e.startsWith("Priority:")){const t=e.match(/Priority: (\d+)/i);if(!t){return 1}return Number(t[1])}}return 1}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=h===0?h+1:h;const E=p?.created_at?DateTime.fromISO(p.created_at):undefined;let y=getMostRecentActivityDate(g,E);const I=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));I.push(r.html_url);const C=await Promise.all(I.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>y))})));const b=C.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:b?DateTime.fromISO(b.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:y.toLocaleString(DateTime.DATETIME_MED)});const B=a-i;if(b){const t=DateTime.fromISO(b.created_at);y=t>y?t:y;if(y.plus({milliseconds:c?B/m:B})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(y.plus({milliseconds:c?i/m:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url} still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file From e99e3829c169b7bae1d2f91956d06ca01a40c5eb Mon Sep 17 00:00:00 2001 From: ishowvel Date: Thu, 31 Oct 2024 05:05:06 +0000 Subject: [PATCH 11/19] chore: update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 764f2f1..a5effb5 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ yarn test with: disqualification: "7 days" warning: "3.5 days" + prioritySpeed: true watch: optOut: - "repoName" From 626f54732ffb5c056660da39b0274762889ba3fc Mon Sep 17 00:00:00 2001 From: ishowvel Date: Thu, 31 Oct 2024 05:13:09 +0000 Subject: [PATCH 12/19] fix: update jest tests --- tests/main.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/main.test.ts b/tests/main.test.ts index c3495eb..490fab6 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -50,6 +50,7 @@ describe("User start/stop", () => { expect(pluginSettings).toEqual({ pullRequestRequired: true, warning: 302400000, + prioritySpeed: true, disqualification: 604800000, watch: { optOut: [STRINGS.PRIVATE_REPO_NAME] }, eventWhitelist: ["review_requested", "ready_for_review", "commented", "committed"], @@ -103,6 +104,7 @@ describe("User start/stop", () => { pullRequestRequired: true, warning: ms("3.5 days"), disqualification: ms("7 days"), + prioritySpeed: true, watch: { optOut: [STRINGS.PRIVATE_REPO_NAME] }, eventWhitelist: ["review_requested", "ready_for_review", "commented", "committed"], }); @@ -121,7 +123,7 @@ describe("User start/stop", () => { await expect(run(context)).resolves.toEqual({ message: "OK" }); expect(errorSpy).toHaveBeenCalledWith(`Failed to update activity for ${getIssueHtmlUrl(1)}, there is no assigned event.`); - expect(infoSpy).toHaveBeenCalledWith(`Nothing to do for ${getIssueHtmlUrl(2)}, still within due-time.`); + expect(infoSpy).toHaveBeenCalledWith(`Nothing to do for ${getIssueHtmlUrl(2)} still within due-time.`); expect(infoSpy).toHaveBeenCalledWith(`Passed the reminder threshold on ${getIssueHtmlUrl(3)}, sending a reminder.`); expect(infoSpy).toHaveBeenCalledWith(`@user2, this task has been idle for a while. Please provide an update.\n\n`, { taskAssignees: [2], @@ -137,7 +139,7 @@ describe("User start/stop", () => { await expect(run(context)).resolves.toEqual({ message: "OK" }); - expect(infoSpy).toHaveBeenCalledWith(`Nothing to do for ${getIssueHtmlUrl(2)}, still within due-time.`); + expect(infoSpy).toHaveBeenCalledWith(`Nothing to do for ${getIssueHtmlUrl(2)} still within due-time.`); expect(infoSpy).toHaveBeenCalledWith(`Passed the reminder threshold on ${getIssueHtmlUrl(3)}, sending a reminder.`); expect(infoSpy).toHaveBeenCalledWith(`@user2, this task has been idle for a while. Please provide an update.\n\n`, { taskAssignees: [2], @@ -156,7 +158,7 @@ describe("User start/stop", () => { await run(context); - expect(infoSpy).toHaveBeenCalledWith(`Nothing to do for ${getIssueHtmlUrl(2)}, still within due-time.`); + expect(infoSpy).toHaveBeenCalledWith(`Nothing to do for ${getIssueHtmlUrl(2)} still within due-time.`); expect(infoSpy).toHaveBeenCalledWith(`Passed the reminder threshold on ${getIssueHtmlUrl(3)}, sending a reminder.`); expect(infoSpy).toHaveBeenCalledWith(`@user2, this task has been idle for a while. Please provide an update.\n\n`, { taskAssignees: [2], @@ -193,7 +195,7 @@ describe("User start/stop", () => { await run(context); - expect(infoSpy).toHaveBeenCalledWith(`Nothing to do for ${getIssueHtmlUrl(2)}, still within due-time.`); + expect(infoSpy).toHaveBeenCalledWith(`Nothing to do for ${getIssueHtmlUrl(2)} still within due-time.`); const updatedIssue = db.issue.findFirst({ where: { id: { equals: 1 } } }); expect(updatedIssue?.assignees).toEqual([{ login: STRINGS.UBIQUITY, id: 1 }]); From d82d2608b3f6ab56fcc579df8e0a5c6cdcc83f0f Mon Sep 17 00:00:00 2001 From: ishowvel Date: Fri, 1 Nov 2024 09:59:52 +0530 Subject: [PATCH 13/19] Update task-update.ts --- src/helpers/task-update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/task-update.ts b/src/helpers/task-update.ts index 5ad166a..752abc6 100644 --- a/src/helpers/task-update.ts +++ b/src/helpers/task-update.ts @@ -47,7 +47,7 @@ export async function updateTaskReminder(context: ContextPlugin, repo: ListForOr const assignedDate = DateTime.fromISO(assignedEvent.created_at); const priorityValue = parsePriorityLabel(issue.labels); - const priorityLevel = priorityValue === 0 ? priorityValue + 1 : priorityValue; + const priorityLevel = Math.max(1, priorityValue); const activityDate = activityEvent?.created_at ? DateTime.fromISO(activityEvent.created_at) : undefined; let mostRecentActivityDate = getMostRecentActivityDate(assignedDate, activityDate); From c203480ceb4d74706cf1a4ba9c531d5981e7d858 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 04:30:55 +0000 Subject: [PATCH 14/19] chore: updated manifest.json and dist build --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 934e8af..d0f99a4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANB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gA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNU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EQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQ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AIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEAN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kACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0x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hwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHSADYCHCAAIBQ2AhQgACABNg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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){for(const t of e){let e="";if(typeof t==="string"){e=t}else{e=t.name||""}if(e.startsWith("Priority:")){const t=e.match(/Priority: (\d+)/i);if(!t){return 1}return Number(t[1])}}return 1}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=h===0?h+1:h;const E=p?.created_at?DateTime.fromISO(p.created_at):undefined;let y=getMostRecentActivityDate(g,E);const I=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));I.push(r.html_url);const C=await Promise.all(I.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>y))})));const b=C.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:b?DateTime.fromISO(b.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:y.toLocaleString(DateTime.DATETIME_MED)});const B=a-i;if(b){const t=DateTime.fromISO(b.created_at);y=t>y?t:y;if(y.plus({milliseconds:c?B/m:B})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(y.plus({milliseconds:c?i/m:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url} still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){for(const t of e){let e="";if(typeof t==="string"){e=t}else{e=t.name||""}if(e.startsWith("Priority:")){const t=e.match(/Priority: (\d+)/i);if(!t){return 1}return Number(t[1])}}return 1}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=Math.max(1,h);const E=p?.created_at?DateTime.fromISO(p.created_at):undefined;let y=getMostRecentActivityDate(g,E);const I=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));I.push(r.html_url);const C=await Promise.all(I.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>y))})));const b=C.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:b?DateTime.fromISO(b.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:y.toLocaleString(DateTime.DATETIME_MED)});const B=a-i;if(b){const t=DateTime.fromISO(b.created_at);y=t>y?t:y;if(y.plus({milliseconds:c?B/m:B})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(y.plus({milliseconds:c?i/m:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url} still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file From 61cf7cbb7b2e29f96a4a94d8a4d44c19034f436b Mon Sep 17 00:00:00 2001 From: ishowvel Date: Fri, 1 Nov 2024 13:08:39 +0530 Subject: [PATCH 15/19] Delete dist/index.js --- dist/index.js | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 dist/index.js diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index d0f99a4..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` -/*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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ACgCiNCAgAAiBEEBIABBA3Z0IgBxDQBBACAEIAByNgKI0ICAACACIQAMAQsgAigCCCEACyAAIAE2AgwgAiABNgIIIAEgAjYCDCABIAA2AggPC0EfIQICQCAAQf///wdLDQAgAEEIdiICIAJBgP4/akEQdkEIcSICdCIEIARBgOAfakEQdkEEcSIEdCIGIAZBgIAPakEQdkECcSIGdEEPdiACIARyIAZyayICQQF0IAAgAkEVanZBAXFyQRxqIQILIAEgAjYCHCABQgA3AhAgAkECdEG40oCAAGohBAJAAkBBACgCjNCAgAAiBkEBIAJ0IgNxDQAgBCABNgIAQQAgBiADcjYCjNCAgAAgASAENgIYIAEgATYCCCABIAE2AgwMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgBCgCACEGAkADQCAGIgQoAgRBeHEgAEYNASACQR12IQYgAkEBdCECIAQgBkEEcWpBEGoiAygCACIGDQALIAMgATYCACABIAQ2AhggASABNgIMIAEgATYCCAwBCyAEKAIIIgAgATYCDCAEIAE2AgggAUEANgIYIAEgBDYCDCABIAA2AggLQQBBACgCqNCAgABBf2oiAUF/IAEbNgKo0ICAAAsLBAAAAAtOAAJAIAANAD8AQRB0DwsCQCAAQf//A3ENACAAQX9MDQACQCAAQRB2QAAiAEF/Rw0AQQBBMDYC+NOAgABBfw8LIABBEHQPCxDKgICAAAAL8gICA38BfgJAIAJFDQAgACABOgAAIAIgAGoiA0F/aiABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBfWogAToAACADQX5qIAE6AAAgAkEHSQ0AIAAgAToAAyADQXxqIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYci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mVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCrLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABBnH9qDv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gVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC0kBAXsgAEEQav0MAAAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0xNT1BRUlPeA1dZW1xdYGJlZmdoaWprbG1vcHFyc3R1dnd4eXp7fH1+gAGCAYUBhgGHAYkBiwGMAY0BjgGPAZABkQGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvAbABsQGyAbMBtAG1AbYBtwG4AbkBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgHHAcgByQHKAcsBzAHNAc4BzwHQAdEB0gHTAdQB1QHWAdcB2AHZAdoB2wHcAd0B3gHgAeEB4gHjAeQB5QHmAecB6AHpAe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CDEEAIRAMvAELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKkBCyAAQdwANgIcIAAgATYCFCAAIAQ2AgxBACEQDLsBCwJAIAEtAABBUGoiEEH/AXFBCk8NACAAIBA6ACogAUEBaiEBQc8AIRAMogELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKcBCyAAQd4ANgIcIAAgATYCFCAAIAQ2AgxBACEQDLoBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKUEjTw0AIAEhAQxZCyAAQQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2Ag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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){for(const t of e){let e="";if(typeof t==="string"){e=t}else{e=t.name||""}if(e.startsWith("Priority:")){const t=e.match(/Priority: (\d+)/i);if(!t){return 1}return Number(t[1])}}return 1}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=Math.max(1,h);const E=p?.created_at?DateTime.fromISO(p.created_at):undefined;let y=getMostRecentActivityDate(g,E);const I=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));I.push(r.html_url);const C=await Promise.all(I.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>y))})));const b=C.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:b?DateTime.fromISO(b.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:y.toLocaleString(DateTime.DATETIME_MED)});const B=a-i;if(b){const t=DateTime.fromISO(b.created_at);y=t>y?t:y;if(y.plus({milliseconds:c?B/m:B})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(y.plus({milliseconds:c?i/m:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url} still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file From a9c00724344c651e3701df4c33d07884910372dc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 07:39:41 +0000 Subject: [PATCH 16/19] chore: updated manifest.json and dist build --- dist/index.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 dist/index.js diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..d0f99a4 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,3 @@ +import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` +/*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNl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FsaXZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCsLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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BAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBuAG5AboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBxwHIAckBygHLAcwBzQHOAc8B0AHRAdIB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IBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAI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DACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYU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AtBtAEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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IABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQD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QZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; +/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){for(const t of e){let e="";if(typeof t==="string"){e=t}else{e=t.name||""}if(e.startsWith("Priority:")){const t=e.match(/Priority: (\d+)/i);if(!t){return 1}return Number(t[1])}}return 1}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=Math.max(1,h);const E=p?.created_at?DateTime.fromISO(p.created_at):undefined;let y=getMostRecentActivityDate(g,E);const I=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));I.push(r.html_url);const C=await Promise.all(I.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>y))})));const b=C.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:b?DateTime.fromISO(b.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:y.toLocaleString(DateTime.DATETIME_MED)});const B=a-i;if(b){const t=DateTime.fromISO(b.created_at);y=t>y?t:y;if(y.plus({milliseconds:c?B/m:B})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(y.plus({milliseconds:c?i/m:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url} still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file From 4d94f43bdc4215781320c333e4a108ba92845381 Mon Sep 17 00:00:00 2001 From: ishowvel Date: Fri, 1 Nov 2024 07:49:57 +0000 Subject: [PATCH 17/19] fix: add old polyfill --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index d0f99a4..9fe2487 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0d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3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4ABgQGCAYMBhAG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hEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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yIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAWohAUEkIRALIAAgEDoAKSAAKAIEIRAgAEEANgIEIAAgECABEKuAgIAAIhANVCABIQEMPgs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ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0xNT1BRUlPeA1dZW1xdYGJlZmdoaWprbG1vcHFyc3R1dnd4eXp7fH1+gAGCAYUBhgGHAYkBiwG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0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHSADYCHCAAIBQ2AhQgACABNgIMQQAhEAykAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHTADYCHCAAI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AAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){for(const t of e){let e="";if(typeof t==="string"){e=t}else{e=t.name||""}if(e.startsWith("Priority:")){const t=e.match(/Priority: (\d+)/i);if(!t){return 1}return Number(t[1])}}return 1}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=Math.max(1,h);const E=p?.created_at?DateTime.fromISO(p.created_at):undefined;let y=getMostRecentActivityDate(g,E);const I=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));I.push(r.html_url);const C=await Promise.all(I.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>y))})));const b=C.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:b?DateTime.fromISO(b.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:y.toLocaleString(DateTime.DATETIME_MED)});const B=a-i;if(b){const t=DateTime.fromISO(b.created_at);y=t>y?t:y;if(y.plus({milliseconds:c?B/m:B})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(y.plus({milliseconds:c?i/m:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url} still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a}}=e;const c=await getTaskAssignmentDetails(e,t,r);const u=DateTime.local();if(!c)return;const A=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const l=A.filter((e=>e.event==="assigned"&&c.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!l){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const d=(await getAssigneesActivityForIssue(e,r,c.taskAssignees)).filter((e=>o.includes(e.event))).shift();const p=DateTime.fromISO(l.created_at);const g=d?.created_at?DateTime.fromISO(d.created_at):undefined;let h=getMostRecentActivityDate(p,g);const m=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));m.push(r.html_url);const E=await Promise.all(m.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>h))})));const y=E.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:u.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(l.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:y?DateTime.fromISO(y.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:h.toLocaleString(DateTime.DATETIME_MED)});const I=a-i;if(y){const t=DateTime.fromISO(y.created_at);h=t>h?t:h;if(h.plus({milliseconds:I})<=u){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(h.plus({milliseconds:i})<=u){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url}, still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,postCommentOnError:false,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file From d9475c6acc78e1752eb0a8351b78572fb3d3f8d6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 07:51:02 +0000 Subject: [PATCH 18/19] chore: updated manifest.json and dist build --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 9fe2487..d0f99a4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYM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ZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCsLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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FDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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AJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBuAG5AboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBxwHIAckBygHLAcwBzQHOAc8B0AHRAdIB0wHU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AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2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Qd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYUBhgG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AEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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cDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQDN0DC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gIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYC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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a}}=e;const c=await getTaskAssignmentDetails(e,t,r);const u=DateTime.local();if(!c)return;const A=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const l=A.filter((e=>e.event==="assigned"&&c.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!l){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const d=(await getAssigneesActivityForIssue(e,r,c.taskAssignees)).filter((e=>o.includes(e.event))).shift();const p=DateTime.fromISO(l.created_at);const g=d?.created_at?DateTime.fromISO(d.created_at):undefined;let h=getMostRecentActivityDate(p,g);const m=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));m.push(r.html_url);const E=await Promise.all(m.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>h))})));const y=E.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:u.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(l.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:y?DateTime.fromISO(y.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:h.toLocaleString(DateTime.DATETIME_MED)});const I=a-i;if(y){const t=DateTime.fromISO(y.created_at);h=t>h?t:h;if(h.plus({milliseconds:I})<=u){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(h.plus({milliseconds:i})<=u){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url}, still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,postCommentOnError:false,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){for(const t of e){let e="";if(typeof t==="string"){e=t}else{e=t.name||""}if(e.startsWith("Priority:")){const t=e.match(/Priority: (\d+)/i);if(!t){return 1}return Number(t[1])}}return 1}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=Math.max(1,h);const E=p?.created_at?DateTime.fromISO(p.created_at):undefined;let y=getMostRecentActivityDate(g,E);const I=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));I.push(r.html_url);const C=await Promise.all(I.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>y))})));const b=C.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:b?DateTime.fromISO(b.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:y.toLocaleString(DateTime.DATETIME_MED)});const B=a-i;if(b){const t=DateTime.fromISO(b.created_at);y=t>y?t:y;if(y.plus({milliseconds:c?B/m:B})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(y.plus({milliseconds:c?i/m:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url} still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file From 06f12007ac75ded2e83c69b6088df0df8d0b2284 Mon Sep 17 00:00:00 2001 From: ishowvel Date: Sat, 2 Nov 2024 06:58:59 +0000 Subject: [PATCH 19/19] chore: add polyfill --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index d0f99a4..6232a7e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,3 +1,3 @@ import{createRequire as e}from"module";var t={44914:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=o(r(70857));const a=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.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 n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}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")}},37484:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=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(44914);const c=r(24753);const u=r(30302);const A=o(r(70857));const l=o(r(16928));const d=r(35306);var p;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(p=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=u.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t))}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.issueFileCommand("PATH",e)}else{a.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.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!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,t);if(r.includes(s))return true;if(n.includes(s))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){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t))}process.stdout.write(A.EOL);a.issueCommand("set-output",{name:e},u.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){a.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=p.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,t={}){a.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){a.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){a.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+A.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){const r=process.env["GITHUB_STATE"]||"";if(r){return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t))}a.issueCommand("save-state",{name:e},u.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield d.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var m=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return m.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return m.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return m.toPlatformPath}})},24753:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=o(r(79896));const a=o(r(70857));const c=r(12048);const u=r(30302);function issueFileCommand(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,`${u.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${c.v4()}`;const n=u.toCommandValue(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=r(54844);const o=r(44552);const i=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const s=(t=n.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}i.debug(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);i.setSecret(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=o(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},71847:function(e,t,r){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())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const s=r(70857);const o=r(79896);const{access:i,appendFile:a,writeFile:c}=o.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,o.constants.R_OK|o.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:a;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(s.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const s=this.wrap(r,n);return this.addRaw(s).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:s}=e;const o=t?"th":"td";const i=Object.assign(Object.assign({},n&&{colspan:n}),s&&{rowspan:s});return this.wrap(o,r,i)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:s}=r||{};const o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s});const i=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(i).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const u=new Summary;t.markdownSummary=u;t.summary=u},30302:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=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;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},51648:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const s=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,n.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,n.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const i=o(r(51648));const a=r(38006);t.context=new i.Context;function getOctokit(e,t,...r){const n=a.GitHub.plugin(...r);return new n((0,a.getOctokitOptions)(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyFetch=t.getProxyAgentDispatcher=t.getProxyAgent=t.getAuthString=void 0;const a=o(r(54844));const c=r(24371);function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new a.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(e){const t=new a.HttpClient;return t.getAgentDispatcher(e)}t.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,r)=>i(this,void 0,void 0,(function*(){return(0,c.fetch)(e,Object.assign(Object.assign({},r),{dispatcher:t}))}));return proxyFetch}t.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const i=o(r(51648));const a=o(r(65156));const c=r(38452);const u=r(53345);const A=r(37731);t.context=new i.Context;const l=a.getApiBaseUrl();t.defaults={baseUrl:l,request:{agent:a.getProxyAgent(l),fetch:a.getProxyFetch(l)}};t.GitHub=c.Octokit.plugin(u.restEndpointMethods,A.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=a.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},32057:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{createTokenAuth:()=>u});e.exports=__toCommonJS(o);var i=/^v1\./;var a=/^ghs_/;var c=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=i.test(e)||a.test(e);const n=c.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var u=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};0&&0},38452:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{Octokit:()=>E});e.exports=__toCommonJS(a);var c=r(7900);var u=r(45029);var A=r(68576);var l=r(35448);var d=r(32057);var p="5.2.0";var noop=()=>{};var g=console.warn.bind(console);var h=console.error.bind(console);var m=`octokit-core.js/${p} ${(0,c.getUserAgent)()}`;var E=class{static{this.VERSION=p}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static{this.plugins=[]}static plugin(...e){const t=this.plugins;const r=class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}};return r}constructor(e={}){const t=new u.Collection;const r={baseUrl:A.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${m}`:m;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=A.request.defaults(r);this.graphql=(0,l.withCustomRequest)(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:g,error:h},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=(0,d.createTokenAuth)(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{endpoint:()=>p});e.exports=__toCommonJS(a);var c=r(7900);var u="9.0.5";var A=`octokit-endpoint.js/${u} ${(0,c.getUserAgent)()}`;var l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":A},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var d=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(d);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var p=withDefaults(null,l);0&&0},35448:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{GraphqlResponseError:()=>p,graphql:()=>E,withCustomRequest:()=>withCustomRequest});e.exports=__toCommonJS(a);var c=r(68576);var u=r(7900);var A="7.1.0";var l=r(68576);var d=r(68576);function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var p=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var g=["method","baseUrl","url","headers","request","query","mediaType"];var h=["query","method","url"];var m=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!h.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(g.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(m.test(o)){s.url=o.replace(m,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new p(s,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:r.endpoint})}var E=withDefaults(c.request,{headers:{"user-agent":`octokit-graphql.js/${A} ${(0,u.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}0&&0},37731:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{composePaginateRest:()=>a,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>c});e.exports=__toCommonJS(o);var i="9.2.1";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t="total_count"in e.data&&!("url"in e.data);if(!t)return e;const r=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const o=Object.keys(e.data)[0];const i=e.data[o];e.data=i;if(typeof r!=="undefined"){e.data.incomplete_results=r}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,t,r){const n=typeof t==="function"?t.endpoint(r):e.request.endpoint(t,r);const s=typeof t==="function"?t:e.request;const o=n.method;const i=n.headers;let a=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var a=Object.assign(paginate,{iterator:iterator});var c=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return c.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;0&&0},53345:e=>{var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let c of n(o))if(!s.call(e,c)&&c!==i)t(e,c,{get:()=>o[c],enumerable:!(a=r(o,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var o={};__export(o,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});e.exports=__toCommonJS(o);var i="10.4.1";var a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var c=a;var u=new Map;for(const[e,t]of Object.entries(c)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!u.has(e)){u.set(e,new Map)}u.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}var A={has({scope:e},t){return u.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...u.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=u.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of u.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},A)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=i;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=i;0&&0},27651:(e,t,r)=>{var n=Object.create;var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var a=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of i(t))if(!c.call(e,a)&&a!==r)s(e,a,{get:()=>t[a],enumerable:!(n=o(t,a))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(a(e)):{},__copyProps(t||!e||!e.__esModule?s(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(s({},"__esModule",{value:true}),e);var u={};__export(u,{RequestError:()=>g});e.exports=__toCommonJS(u);var A=r(91769);var l=__toESM(r(55560));var d=(0,l.default)((e=>console.warn(e)));var p=(0,l.default)((e=>console.warn(e)));var g=class extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let n;if("headers"in r&&typeof r.headers!=="undefined"){n=r.headers}if("response"in r){this.response=r.response;n=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){d(new A.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){p(new A.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return n||{}}})}};0&&0},68576:(e,t,r)=>{var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let c of o(t))if(!i.call(e,c)&&c!==r)n(e,c,{get:()=>t[c],enumerable:!(a=s(t,c))||a.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var a={};__export(a,{request:()=>d});e.exports=__toCommonJS(a);var c=r(64806);var u=r(7900);var A="8.4.0";function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var l=r(27651);function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){var t,r,n,s;const o=e.request&&e.request.log?e.request.log:console;const i=((t=e.request)==null?void 0:t.parseSuccessResponseBody)!==false;if(isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let c;let u;let{fetch:A}=globalThis;if((r=e.request)==null?void 0:r.fetch){A=e.request.fetch}if(!A){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}return A(e.url,{method:e.method,body:e.body,redirect:(n=e.request)==null?void 0:n.redirect,headers:e.headers,signal:(s=e.request)==null?void 0:s.signal,...e.body&&{duplex:"half"}}).then((async t=>{u=t.url;c=t.status;for(const e of t.headers){a[e[0]]=e[1]}if("deprecation"in a){const t=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=t&&t.pop();o.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(c===204||c===205){return}if(e.method==="HEAD"){if(c<400){return}throw new l.RequestError(t.statusText,c,{response:{url:u,status:c,headers:a,data:void 0},request:e})}if(c===304){throw new l.RequestError("Not modified",c,{response:{url:u,status:c,headers:a,data:await getResponseData(t)},request:e})}if(c>=400){const r=await getResponseData(t);const n=new l.RequestError(toErrorMessage(r),c,{response:{url:u,status:c,headers:a,data:r},request:e});throw n}return i?await getResponseData(t):t.body})).then((e=>({status:c,url:u,headers:a,data:e}))).catch((t=>{if(t instanceof l.RequestError)throw t;else if(t.name==="AbortError")throw t;let r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}throw new l.RequestError(r,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;let t;if("documentation_url"in e){t=` - ${e.documentation_url}`}else{t=""}if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`}return`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}var d=withDefaults(c.endpoint,{headers:{"user-agent":`octokit-request.js/${A} ${(0,u.getUserAgent)()}`}});0&&0},45029:(e,t,r)=>{var n=r(30604);var s=r(68878);var o=r(29357);var i=Function.bind;var a=i.bind(i);function bindApi(e,t,r){var n=a(o,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var o=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(s,null).apply(null,o)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},68878:e=>{e.exports=addHook;function addHook(e,t,r,n){var s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return s(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return s(e,t)}))}}e.registry[r].push({hook:n,orig:s})}},30604:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},29357:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},7900:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},44552:function(e,t){var r=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=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.prototype.hasOwnProperty.call(e,r))n(t,e,r);s(t,e);return t};var i=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())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const a=o(r(58611));const c=o(r(65692));const u=o(r(54988));const A=o(r(20770));const l=r(24371);var d;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(d||(t.HttpCodes=d={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p||(t.Headers=p={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=u.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[d.MovedPermanently,d.ResourceMoved,d.SeeOther,d.TemporaryRedirect,d.PermanentRedirect];const m=[d.BadGateway,d.ServiceUnavailable,d.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const y=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return i(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,g.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.post(e,n,r);return this._processResponse(s,this.requestOptions)}))}putJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.put(e,n,r);return this._processResponse(s,this.requestOptions)}))}patchJson(e,t,r={}){return i(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,g.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,g.ApplicationJson);const s=yield this.patch(e,n,r);return this._processResponse(s,this.requestOptions)}))}request(e,t,r,n){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const s=new URL(t);let o=this._prepareRequest(e,s,n);const i=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let a=0;let c;do{c=yield this.requestRaw(o,r);if(c&&c.message&&c.message.statusCode===d.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,o,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const i=c.message.headers["location"];if(!i){break}const a=new URL(i);if(s.protocol==="https:"&&s.protocol!==a.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(a.hostname!==s.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}o=this._prepareRequest(e,a,n);c=yield this.requestRaw(o,r);t--}if(!c.message.statusCode||!m.includes(c.message.statusCode)){return c}a+=1;if(a{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const s=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let o;s.on("socket",(e=>{o=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(o){o.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));s.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){s.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){s.end()}));t.pipe(s)}else{s.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=u.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?c:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=u.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const s=e.protocol==="https:";let o=100;if(this.requestOptions){o=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i=r.protocol==="https:";if(s){n=i?A.httpsOverHttps:A.httpsOverHttp}else{n=i?A.httpOverHttps:A.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:o};t=s?new c.Agent(e):new a.Agent(e);this._agent=t}if(s&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(y,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>i(this,void 0,void 0,(function*(){const s=e.message.statusCode||0;const o={statusCode:s,result:null,headers:{}};if(s===d.NotFound){r(o)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let a;try{a=yield e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){i=JSON.parse(a,dateTimeDeserializer)}else{i=JSON.parse(a)}o.result=i}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(i&&i.message){e=i.message}else if(a&&a.length>0){e=a}else{e=`Failed request: (${s})`}const t=new HttpClientError(e,s);t.result=o.result;n(t)}else{r(o)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const s=[e.hostname.toUpperCase()];if(typeof n==="number"){s.push(`${s[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||s.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75364:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeCompiler=t.Policy=t.TypeCompilerTypeGuardError=t.TypeCompilerUnknownTypeError=t.TypeCheck=void 0;const n=r(50038);const s=r(65507);const o=r(82129);const i=r(26113);const a=r(40886);const c=r(7210);const u=r(97034);const A=r(51786);const l=r(73373);const d=r(82486);const p=r(54025);const g=r(17479);const h=r(70384);class TypeCheck{constructor(e,t,r,s){this.schema=e;this.references=t;this.checkFunc=r;this.code=s;this.hasTransform=(0,n.HasTransform)(e,t)}Code(){return this.code}Errors(e){return(0,s.Errors)(this.schema,this.references,e)}Check(e){return this.checkFunc(e)}Decode(e){if(!this.checkFunc(e))throw new n.TransformDecodeCheckError(this.schema,e,this.Errors(e).First());return this.hasTransform?(0,n.TransformDecode)(this.schema,this.references,e):e}Encode(e){const t=this.hasTransform?(0,n.TransformEncode)(this.schema,this.references,e):e;if(!this.checkFunc(t))throw new n.TransformEncodeCheckError(this.schema,e,this.Errors(e).First());return t}}t.TypeCheck=TypeCheck;var m;(function(e){function DollarSign(e){return e===36}e.DollarSign=DollarSign;function IsUnderscore(e){return e===95}e.IsUnderscore=IsUnderscore;function IsAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}e.IsAlpha=IsAlpha;function IsNumeric(e){return e>=48&&e<=57}e.IsNumeric=IsNumeric})(m||(m={}));var E;(function(e){function IsFirstCharacterNumeric(e){if(e.length===0)return false;return m.IsNumeric(e.charCodeAt(0))}function IsAccessor(e){if(IsFirstCharacterNumeric(e))return false;for(let t=0;t= ${e.minItems}`;const o=CreateExpression(e.items,t,"value");yield`${r}.every((${n}) => ${o})`;if((0,h.IsSchema)(e.contains)||(0,g.IsNumber)(e.minContains)||(0,g.IsNumber)(e.maxContains)){const o=(0,h.IsSchema)(e.contains)?e.contains:(0,p.Never)();const i=CreateExpression(o,t,"value");const a=(0,g.IsNumber)(e.minContains)?[`(count >= ${e.minContains})`]:[];const c=(0,g.IsNumber)(e.maxContains)?[`(count <= ${e.maxContains})`]:[];const u=`const count = value.reduce((${s}, ${n}) => ${i} ? acc + 1 : acc, 0)`;const A=[`(count > 0)`,...a,...c].join(" && ");yield`((${n}) => { ${u}; return ${A}})(${r})`}if(e.uniqueItems===true){const e=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const t=`const set = new Set(); for(const element of value) { ${e} }`;yield`((${n}) => { ${t} )(${r})`}}function*FromAsyncIterator(e,t,r){yield`(typeof value === 'object' && Symbol.asyncIterator in ${r})`}function*FromBigInt(e,t,r){yield`(typeof ${r} === 'bigint')`;if((0,g.IsBigInt)(e.exclusiveMaximum))yield`${r} < BigInt(${e.exclusiveMaximum})`;if((0,g.IsBigInt)(e.exclusiveMinimum))yield`${r} > BigInt(${e.exclusiveMinimum})`;if((0,g.IsBigInt)(e.maximum))yield`${r} <= BigInt(${e.maximum})`;if((0,g.IsBigInt)(e.minimum))yield`${r} >= BigInt(${e.minimum})`;if((0,g.IsBigInt)(e.multipleOf))yield`(${r} % BigInt(${e.multipleOf})) === 0`}function*FromBoolean(e,t,r){yield`(typeof ${r} === 'boolean')`}function*FromConstructor(e,t,r){yield*Visit(e.returns,t,`${r}.prototype`)}function*FromDate(e,t,r){yield`(${r} instanceof Date) && Number.isFinite(${r}.getTime())`;if((0,g.IsNumber)(e.exclusiveMaximumTimestamp))yield`${r}.getTime() < ${e.exclusiveMaximumTimestamp}`;if((0,g.IsNumber)(e.exclusiveMinimumTimestamp))yield`${r}.getTime() > ${e.exclusiveMinimumTimestamp}`;if((0,g.IsNumber)(e.maximumTimestamp))yield`${r}.getTime() <= ${e.maximumTimestamp}`;if((0,g.IsNumber)(e.minimumTimestamp))yield`${r}.getTime() >= ${e.minimumTimestamp}`;if((0,g.IsNumber)(e.multipleOfTimestamp))yield`(${r}.getTime() % ${e.multipleOfTimestamp}) === 0`}function*FromFunction(e,t,r){yield`(typeof ${r} === 'function')`}function*FromInteger(e,t,r){yield`Number.isInteger(${r})`;if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromIntersect(e,t,r){const n=e.allOf.map((e=>CreateExpression(e,t,r))).join(" && ");if(e.unevaluatedProperties===false){const t=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const s=`Object.getOwnPropertyNames(${r}).every(key => ${t}.test(key))`;yield`(${n} && ${s})`}else if((0,h.IsSchema)(e.unevaluatedProperties)){const s=CreateVariable(`${new RegExp((0,l.KeyOfPattern)(e))};`);const o=`Object.getOwnPropertyNames(${r}).every(key => ${s}.test(key) || ${CreateExpression(e.unevaluatedProperties,t,`${r}[key]`)})`;yield`(${n} && ${o})`}else{yield`(${n})`}}function*FromIterator(e,t,r){yield`(typeof value === 'object' && Symbol.iterator in ${r})`}function*FromLiteral(e,t,r){if(typeof e.const==="number"||typeof e.const==="boolean"){yield`(${r} === ${e.const})`}else{yield`(${r} === '${I.Escape(e.const)}')`}}function*FromNever(e,t,r){yield`false`}function*FromNot(e,t,r){const n=CreateExpression(e.not,t,r);yield`(!${n})`}function*FromNull(e,t,r){yield`(${r} === null)`}function*FromNumber(e,t,r){yield C.IsNumberLike(r);if((0,g.IsNumber)(e.exclusiveMaximum))yield`${r} < ${e.exclusiveMaximum}`;if((0,g.IsNumber)(e.exclusiveMinimum))yield`${r} > ${e.exclusiveMinimum}`;if((0,g.IsNumber)(e.maximum))yield`${r} <= ${e.maximum}`;if((0,g.IsNumber)(e.minimum))yield`${r} >= ${e.minimum}`;if((0,g.IsNumber)(e.multipleOf))yield`(${r} % ${e.multipleOf}) === 0`}function*FromObject(e,t,r){yield C.IsObjectLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=E.Encode(r,s);const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*Visit(o,t,n);if((0,d.ExtendsUndefinedCheck)(o)||IsAnyOrUnknown(o))yield`('${s}' in ${r})`}else{const e=CreateExpression(o,t,n);yield C.IsExactOptionalProperty(r,s,e)}}if(e.additionalProperties===false){if(e.required&&e.required.length===n.length){yield`Object.getOwnPropertyNames(${r}).length === ${n.length}`}else{const e=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${r}).every(key => ${e}.includes(key))`}}if(typeof e.additionalProperties==="object"){const s=CreateExpression(e.additionalProperties,t,`${r}[key]`);const o=`[${n.map((e=>`'${e}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${r}).every(key => ${o}.includes(key) || ${s}))`}}function*FromPromise(e,t,r){yield`(typeof value === 'object' && typeof ${r}.then === 'function')`}function*FromRecord(e,t,r){yield C.IsRecordLike(r);if((0,g.IsNumber)(e.minProperties))yield`Object.getOwnPropertyNames(${r}).length >= ${e.minProperties}`;if((0,g.IsNumber)(e.maxProperties))yield`Object.getOwnPropertyNames(${r}).length <= ${e.maxProperties}`;const[n,s]=Object.entries(e.patternProperties)[0];const o=CreateVariable(`${new RegExp(n)}`);const i=CreateExpression(s,t,"value");const a=(0,h.IsSchema)(e.additionalProperties)?CreateExpression(e.additionalProperties,t,r):e.additionalProperties===false?"false":"true";const c=`(${o}.test(key) ? ${i} : ${a})`;yield`(Object.entries(${r}).every(([key, value]) => ${c}))`}function*FromRef(e,r,n){const s=(0,a.Deref)(e,r);if(t.functions.has(e.$ref))return yield`${CreateFunctionName(e.$ref)}(${n})`;yield*Visit(s,r,n)}function*FromRegExp(e,t,r){const n=CreateVariable(`${new RegExp(e.source,e.flags)};`);yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;yield`${n}.test(${r})`}function*FromString(e,t,r){yield`(typeof ${r} === 'string')`;if((0,g.IsNumber)(e.maxLength))yield`${r}.length <= ${e.maxLength}`;if((0,g.IsNumber)(e.minLength))yield`${r}.length >= ${e.minLength}`;if(e.pattern!==undefined){const t=CreateVariable(`${new RegExp(e.pattern)};`);yield`${t}.test(${r})`}if(e.format!==undefined){yield`format('${e.format}', ${r})`}}function*FromSymbol(e,t,r){yield`(typeof ${r} === 'symbol')`}function*FromTemplateLiteral(e,t,r){yield`(typeof ${r} === 'string')`;const n=CreateVariable(`${new RegExp(e.pattern)};`);yield`${n}.test(${r})`}function*FromThis(e,t,r){yield`${CreateFunctionName(e.$ref)}(${r})`}function*FromTuple(e,t,r){yield`Array.isArray(${r})`;if(e.items===undefined)return yield`${r}.length === 0`;yield`(${r}.length === ${e.maxItems})`;for(let n=0;nCreateExpression(e,t,r)));yield`(${n.join(" || ")})`}function*FromUint8Array(e,t,r){yield`${r} instanceof Uint8Array`;if((0,g.IsNumber)(e.maxByteLength))yield`(${r}.length <= ${e.maxByteLength})`;if((0,g.IsNumber)(e.minByteLength))yield`(${r}.length >= ${e.minByteLength})`}function*FromUnknown(e,t,r){yield"true"}function*FromVoid(e,t,r){yield C.IsVoidLike(r)}function*FromKind(e,r,n){const s=t.instances.size;t.instances.set(s,e);yield`kind('${e[u.Kind]}', ${s}, ${n})`}function*Visit(e,r,n,s=true){const o=(0,g.IsString)(e.$id)?[...r,e]:r;const i=e;if(s&&(0,g.IsString)(e.$id)){const s=CreateFunctionName(e.$id);if(t.functions.has(s)){return yield`${s}(${n})`}else{const o=CreateFunction(s,e,r,"value",false);t.functions.set(s,o);return yield`${s}(${n})`}}switch(i[u.Kind]){case"Any":return yield*FromAny(i,o,n);case"Array":return yield*FromArray(i,o,n);case"AsyncIterator":return yield*FromAsyncIterator(i,o,n);case"BigInt":return yield*FromBigInt(i,o,n);case"Boolean":return yield*FromBoolean(i,o,n);case"Constructor":return yield*FromConstructor(i,o,n);case"Date":return yield*FromDate(i,o,n);case"Function":return yield*FromFunction(i,o,n);case"Integer":return yield*FromInteger(i,o,n);case"Intersect":return yield*FromIntersect(i,o,n);case"Iterator":return yield*FromIterator(i,o,n);case"Literal":return yield*FromLiteral(i,o,n);case"Never":return yield*FromNever(i,o,n);case"Not":return yield*FromNot(i,o,n);case"Null":return yield*FromNull(i,o,n);case"Number":return yield*FromNumber(i,o,n);case"Object":return yield*FromObject(i,o,n);case"Promise":return yield*FromPromise(i,o,n);case"Record":return yield*FromRecord(i,o,n);case"Ref":return yield*FromRef(i,o,n);case"RegExp":return yield*FromRegExp(i,o,n);case"String":return yield*FromString(i,o,n);case"Symbol":return yield*FromSymbol(i,o,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,o,n);case"This":return yield*FromThis(i,o,n);case"Tuple":return yield*FromTuple(i,o,n);case"Undefined":return yield*FromUndefined(i,o,n);case"Union":return yield*FromUnion(i,o,n);case"Uint8Array":return yield*FromUint8Array(i,o,n);case"Unknown":return yield*FromUnknown(i,o,n);case"Void":return yield*FromVoid(i,o,n);default:if(!A.TypeRegistry.Has(i[u.Kind]))throw new TypeCompilerUnknownTypeError(e);return yield*FromKind(i,o,n)}}const t={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(e,t,r,n=true){return`(${[...Visit(e,t,r,n)].join(" && ")})`}function CreateFunctionName(e){return`check_${y.Encode(e)}`}function CreateVariable(e){const r=`local_${t.variables.size}`;t.variables.set(r,`const ${r} = ${e}`);return r}function CreateFunction(e,t,r,n,s=true){const[o,i]=["\n",e=>"".padStart(e," ")];const a=CreateParameter("value","any");const c=CreateReturns("boolean");const u=[...Visit(t,r,n,s)].map((e=>`${i(4)}${e}`)).join(` &&${o}`);return`function ${e}(${a})${c} {${o}${i(2)}return (${o}${u}${o}${i(2)})\n}`}function CreateParameter(e,r){const n=t.language==="typescript"?`: ${r}`:"";return`${e}${n}`}function CreateReturns(e){return t.language==="typescript"?`: ${e}`:""}function Build(e,r,n){const s=CreateFunction("check",e,r,"value");const o=CreateParameter("value","any");const i=CreateReturns("boolean");const a=[...t.functions.values()];const c=[...t.variables.values()];const u=(0,g.IsString)(e.$id)?`return function check(${o})${i} {\n return ${CreateFunctionName(e.$id)}(value)\n}`:`return ${s}`;return[...c,...a,u].join("\n")}function Code(...e){const r={language:"javascript"};const[n,s,o]=e.length===2&&(0,g.IsArray)(e[1])?[e[0],e[1],r]:e.length===2&&!(0,g.IsArray)(e[1])?[e[0],[],e[1]]:e.length===3?[e[0],e[1],e[2]]:e.length===1?[e[0],[],r]:[null,[],r];t.language=o.language;t.variables.clear();t.functions.clear();t.instances.clear();if(!(0,h.IsSchema)(n))throw new TypeCompilerTypeGuardError(n);for(const e of s)if(!(0,h.IsSchema)(e))throw new TypeCompilerTypeGuardError(e);return Build(n,s,o)}e.Code=Code;function Compile(e,r=[]){const n=Code(e,r,{language:"javascript"});const s=globalThis.Function("kind","format","hash",n);const o=new Map(t.instances);function typeRegistryFunction(e,t,r){if(!A.TypeRegistry.Has(e)||!o.has(t))return false;const n=A.TypeRegistry.Get(e);const s=o.get(t);return n(s,r)}function formatRegistryFunction(e,t){if(!A.FormatRegistry.Has(e))return false;const r=A.FormatRegistry.Get(e);return r(t)}function hashFunction(e){return(0,c.Hash)(e)}const i=s(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(e,r,i,n)}e.Compile=Compile})(b||(t.TypeCompiler=b={}))},25269:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorType=void 0;var o=r(65507);Object.defineProperty(t,"ValueErrorType",{enumerable:true,get:function(){return o.ValueErrorType}});Object.defineProperty(t,"ValueErrorIterator",{enumerable:true,get:function(){return o.ValueErrorIterator}});s(r(75364),t)},91660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueErrorIterator=t.ValueErrorsUnknownTypeError=t.ValueErrorType=void 0;t.Errors=Errors;const n=r(82129);const s=r(73373);const o=r(51786);const i=r(82486);const a=r(84039);const c=r(26113);const u=r(40886);const A=r(7210);const l=r(97034);const d=r(54025);const p=r(17479);var g;(function(e){e[e["ArrayContains"]=0]="ArrayContains";e[e["ArrayMaxContains"]=1]="ArrayMaxContains";e[e["ArrayMaxItems"]=2]="ArrayMaxItems";e[e["ArrayMinContains"]=3]="ArrayMinContains";e[e["ArrayMinItems"]=4]="ArrayMinItems";e[e["ArrayUniqueItems"]=5]="ArrayUniqueItems";e[e["Array"]=6]="Array";e[e["AsyncIterator"]=7]="AsyncIterator";e[e["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";e[e["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";e[e["BigIntMaximum"]=10]="BigIntMaximum";e[e["BigIntMinimum"]=11]="BigIntMinimum";e[e["BigIntMultipleOf"]=12]="BigIntMultipleOf";e[e["BigInt"]=13]="BigInt";e[e["Boolean"]=14]="Boolean";e[e["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";e[e["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";e[e["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";e[e["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";e[e["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";e[e["Date"]=20]="Date";e[e["Function"]=21]="Function";e[e["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";e[e["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";e[e["IntegerMaximum"]=24]="IntegerMaximum";e[e["IntegerMinimum"]=25]="IntegerMinimum";e[e["IntegerMultipleOf"]=26]="IntegerMultipleOf";e[e["Integer"]=27]="Integer";e[e["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";e[e["Intersect"]=29]="Intersect";e[e["Iterator"]=30]="Iterator";e[e["Kind"]=31]="Kind";e[e["Literal"]=32]="Literal";e[e["Never"]=33]="Never";e[e["Not"]=34]="Not";e[e["Null"]=35]="Null";e[e["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";e[e["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";e[e["NumberMaximum"]=38]="NumberMaximum";e[e["NumberMinimum"]=39]="NumberMinimum";e[e["NumberMultipleOf"]=40]="NumberMultipleOf";e[e["Number"]=41]="Number";e[e["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";e[e["ObjectMaxProperties"]=43]="ObjectMaxProperties";e[e["ObjectMinProperties"]=44]="ObjectMinProperties";e[e["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";e[e["Object"]=46]="Object";e[e["Promise"]=47]="Promise";e[e["RegExp"]=48]="RegExp";e[e["StringFormatUnknown"]=49]="StringFormatUnknown";e[e["StringFormat"]=50]="StringFormat";e[e["StringMaxLength"]=51]="StringMaxLength";e[e["StringMinLength"]=52]="StringMinLength";e[e["StringPattern"]=53]="StringPattern";e[e["String"]=54]="String";e[e["Symbol"]=55]="Symbol";e[e["TupleLength"]=56]="TupleLength";e[e["Tuple"]=57]="Tuple";e[e["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";e[e["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";e[e["Uint8Array"]=60]="Uint8Array";e[e["Undefined"]=61]="Undefined";e[e["Union"]=62]="Union";e[e["Void"]=63]="Void"})(g||(t.ValueErrorType=g={}));class ValueErrorsUnknownTypeError extends c.TypeBoxError{constructor(e){super("Unknown type");this.schema=e}}t.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(e){return e!==undefined}class ValueErrorIterator{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}t.ValueErrorIterator=ValueErrorIterator;function Create(e,t,r,n){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n})}}function*FromAny(e,t,r,n){}function*FromArray(e,t,r,n){if(!(0,p.IsArray)(n)){return yield Create(g.Array,e,r,n)}if(IsDefined(e.minItems)&&!(n.length>=e.minItems)){yield Create(g.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(g.ArrayMaxItems,e,r,n)}for(let s=0;sVisit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(g.ArrayContains,e,r,n)}if((0,p.IsNumber)(e.minContains)&&oe.maxContains){yield Create(g.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!(0,p.IsAsyncIterator)(n))yield Create(g.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!(0,p.IsBigInt)(n))return yield Create(g.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(g.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!(0,p.IsBoolean)(n))yield Create(g.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!(0,p.IsDate)(n))return yield Create(g.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(g.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(g.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(g.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(g.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!(0,p.IsFunction)(n))yield Create(g.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!(0,p.IsInteger)(n))return yield Create(g.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(g.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(g.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(g.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(g.IntegerMultipleOf,e,r,n)}}function*FromIntersect(e,t,r,n){for(const s of e.allOf){const o=Visit(s,t,r,n).next();if(!o.done){yield Create(g.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(g.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const o=new RegExp((0,s.KeyOfPattern)(e));for(const s of Object.getOwnPropertyNames(n)){if(!o.test(s)){const o=Visit(e.unevaluatedProperties,t,`${r}/${s}`,n[s]).next();if(!o.done)yield o.value}}}}function*FromIterator(e,t,r,n){if(!(0,p.IsIterator)(n))yield Create(g.Iterator,e,r,n)}function*FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(g.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(g.Never,e,r,n)}function*FromNot(e,t,r,n){if(Visit(e.not,t,r,n).next().done===true)yield Create(g.Not,e,r,n)}function*FromNull(e,t,r,n){if(!(0,p.IsNull)(n))yield Create(g.Null,e,r,n)}function*FromNumber(e,t,r,s){if(!n.TypeSystemPolicy.IsNumberLike(s))return yield Create(g.Number,e,r,s);if(IsDefined(e.exclusiveMaximum)&&!(se.exclusiveMinimum)){yield Create(g.NumberExclusiveMinimum,e,r,s)}if(IsDefined(e.maximum)&&!(s<=e.maximum)){yield Create(g.NumberMaximum,e,r,s)}if(IsDefined(e.minimum)&&!(s>=e.minimum)){yield Create(g.NumberMinimum,e,r,s)}if(IsDefined(e.multipleOf)&&!(s%e.multipleOf===0)){yield Create(g.NumberMultipleOf,e,r,s)}}function*FromObject(e,t,r,s){if(!n.TypeSystemPolicy.IsObjectLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const o=Array.isArray(e.required)?e.required:[];const a=Object.getOwnPropertyNames(e.properties);const c=Object.getOwnPropertyNames(s);for(const t of o){if(c.includes(t))continue;yield Create(g.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of c){if(!a.includes(t)){yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s[t])}}}if(typeof e.additionalProperties==="object"){for(const n of c){if(a.includes(n))continue;yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,s[n])}}for(const o of a){const a=e.properties[o];if(e.required&&e.required.includes(o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o]);if((0,i.ExtendsUndefinedCheck)(e)&&!(o in s)){yield Create(g.ObjectRequiredProperty,a,`${r}/${EscapeKey(o)}`,undefined)}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(s,o)){yield*Visit(a,t,`${r}/${EscapeKey(o)}`,s[o])}}}}function*FromPromise(e,t,r,n){if(!(0,p.IsPromise)(n))yield Create(g.Promise,e,r,n)}function*FromRecord(e,t,r,s){if(!n.TypeSystemPolicy.IsRecordLike(s))return yield Create(g.Object,e,r,s);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(s).length>=e.minProperties)){yield Create(g.ObjectMinProperties,e,r,s)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(s).length<=e.maxProperties)){yield Create(g.ObjectMaxProperties,e,r,s)}const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const[e,n]of Object.entries(s)){if(a.test(e))yield*Visit(i,t,`${r}/${EscapeKey(e)}`,n)}if(typeof e.additionalProperties==="object"){for(const[n,o]of Object.entries(s)){if(!a.test(n))yield*Visit(e.additionalProperties,t,`${r}/${EscapeKey(n)}`,o)}}if(e.additionalProperties===false){for(const[t,n]of Object.entries(s)){if(a.test(t))continue;return yield Create(g.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n)}}}function*FromRef(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(g.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(g.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(g.StringMaxLength,e,r,n)}if((0,p.IsString)(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(g.StringPattern,e,r,n)}}if((0,p.IsString)(e.format)){if(!o.FormatRegistry.Has(e.format)){yield Create(g.StringFormatUnknown,e,r,n)}else{const t=o.FormatRegistry.Get(e.format);if(!t(n)){yield Create(g.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!(0,p.IsSymbol)(n))yield Create(g.Symbol,e,r,n)}function*FromTemplateLiteral(e,t,r,n){if(!(0,p.IsString)(n))return yield Create(g.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(g.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*Visit((0,u.Deref)(e,t),t,r,n)}function*FromTuple(e,t,r,n){if(!(0,p.IsArray)(n))return yield Create(g.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(g.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(g.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(g.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!(0,p.IsUint8Array)(n))return yield Create(g.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(g.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(g.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,s){if(!n.TypeSystemPolicy.IsVoidLike(s))yield Create(g.Void,e,r,s)}function*FromKind(e,t,r,n){const s=o.TypeRegistry.Get(e[l.Kind]);if(!s(e,n))yield Create(g.Kind,e,r,n)}function*Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const i=e;switch(i[l.Kind]){case"Any":return yield*FromAny(i,s,r,n);case"Array":return yield*FromArray(i,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(i,s,r,n);case"BigInt":return yield*FromBigInt(i,s,r,n);case"Boolean":return yield*FromBoolean(i,s,r,n);case"Constructor":return yield*FromConstructor(i,s,r,n);case"Date":return yield*FromDate(i,s,r,n);case"Function":return yield*FromFunction(i,s,r,n);case"Integer":return yield*FromInteger(i,s,r,n);case"Intersect":return yield*FromIntersect(i,s,r,n);case"Iterator":return yield*FromIterator(i,s,r,n);case"Literal":return yield*FromLiteral(i,s,r,n);case"Never":return yield*FromNever(i,s,r,n);case"Not":return yield*FromNot(i,s,r,n);case"Null":return yield*FromNull(i,s,r,n);case"Number":return yield*FromNumber(i,s,r,n);case"Object":return yield*FromObject(i,s,r,n);case"Promise":return yield*FromPromise(i,s,r,n);case"Record":return yield*FromRecord(i,s,r,n);case"Ref":return yield*FromRef(i,s,r,n);case"RegExp":return yield*FromRegExp(i,s,r,n);case"String":return yield*FromString(i,s,r,n);case"Symbol":return yield*FromSymbol(i,s,r,n);case"TemplateLiteral":return yield*FromTemplateLiteral(i,s,r,n);case"This":return yield*FromThis(i,s,r,n);case"Tuple":return yield*FromTuple(i,s,r,n);case"Undefined":return yield*FromUndefined(i,s,r,n);case"Union":return yield*FromUnion(i,s,r,n);case"Uint8Array":return yield*FromUint8Array(i,s,r,n);case"Unknown":return yield*FromUnknown(i,s,r,n);case"Void":return yield*FromVoid(i,s,r,n);default:if(!o.TypeRegistry.Has(i[l.Kind]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(i,s,r,n)}}function Errors(...e){const t=e.length===3?Visit(e[0],e[1],"",e[2]):Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}},84039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DefaultErrorFunction=DefaultErrorFunction;t.SetErrorFunction=SetErrorFunction;t.GetErrorFunction=GetErrorFunction;const n=r(97034);const s=r(91660);function DefaultErrorFunction(e){switch(e.errorType){case s.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case s.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case s.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case s.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case s.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case s.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case s.ValueErrorType.Array:return"Expected array";case s.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case s.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.BigInt:return"Expected bigint";case s.ValueErrorType.Boolean:return"Expected boolean";case s.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case s.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case s.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case s.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case s.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case s.ValueErrorType.Date:return"Expected Date";case s.ValueErrorType.Function:return"Expected function";case s.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Integer:return"Expected integer";case s.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case s.ValueErrorType.Intersect:return"Expected all values to match";case s.ValueErrorType.Iterator:return"Expected Iterator";case s.ValueErrorType.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case s.ValueErrorType.Never:return"Never";case s.ValueErrorType.Not:return"Value should not match";case s.ValueErrorType.Null:return"Expected null";case s.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case s.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case s.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case s.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case s.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case s.ValueErrorType.Number:return"Expected number";case s.ValueErrorType.Object:return"Expected object";case s.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case s.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case s.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case s.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case s.ValueErrorType.Promise:return"Expected Promise";case s.ValueErrorType.RegExp:return"Expected string to match regular expression";case s.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case s.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case s.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case s.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case s.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case s.ValueErrorType.String:return"Expected string";case s.ValueErrorType.Symbol:return"Expected symbol";case s.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case s.ValueErrorType.Tuple:return"Expected tuple";case s.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case s.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case s.ValueErrorType.Uint8Array:return"Expected Uint8Array";case s.ValueErrorType.Undefined:return"Expected undefined";case s.ValueErrorType.Union:return"Expected union value";case s.ValueErrorType.Void:return"Expected void";case s.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=DefaultErrorFunction;function SetErrorFunction(e){o=e}function GetErrorFunction(){return o}},65507:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(91660),t);s(r(84039),t)},14019:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14150),t);s(r(26113),t);s(r(64754),t);s(r(57782),t);s(r(94354),t);s(r(51786),t);s(r(12760),t);s(r(97034),t);s(r(36813),t);s(r(17186),t);s(r(68092),t);s(r(85164),t);s(r(13278),t);s(r(64515),t);s(r(80788),t);s(r(19236),t);s(r(16939),t);s(r(58562),t);s(r(49305),t);s(r(911),t);s(r(98056),t);s(r(41153),t);s(r(94850),t);s(r(69682),t);s(r(29857),t);s(r(86918),t);s(r(26277),t);s(r(4949),t);s(r(62746),t);s(r(35907),t);s(r(30568),t);s(r(73373),t);s(r(98076),t);s(r(41094),t);s(r(54025),t);s(r(1078),t);s(r(50468),t);s(r(85544),t);s(r(62094),t);s(r(88932),t);s(r(38425),t);s(r(30449),t);s(r(75726),t);s(r(40640),t);s(r(70062),t);s(r(40675),t);s(r(78946),t);s(r(30420),t);s(r(33107),t);s(r(80470),t);s(r(26936),t);s(r(42744),t);s(r(83003),t);s(r(32970),t);s(r(68954),t);s(r(60343),t);s(r(23556),t);s(r(81688),t);s(r(2129),t);s(r(26609),t);s(r(67575),t);s(r(7521),t);s(r(45760),t);s(r(96231),t);s(r(69100),t);s(r(51897),t);s(r(23339),t);s(r(81947),t);s(r(68237),t)},82129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(17755),t);s(r(15912),t)},17755:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystemPolicy=void 0;const n=r(17479);var s;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(s||(t.TypeSystemPolicy=s={}))},15912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeSystem=t.TypeSystemDuplicateFormat=t.TypeSystemDuplicateTypeKind=void 0;const n=r(51786);const s=r(23339);const o=r(97034);const i=r(26113);class TypeSystemDuplicateTypeKind extends i.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}t.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends i.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}t.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var a;(function(e){function Type(e,t){if(n.TypeRegistry.Has(e))throw new TypeSystemDuplicateTypeKind(e);n.TypeRegistry.Set(e,t);return(t={})=>(0,s.Unsafe)({...t,[o.Kind]:e})}e.Type=Type;function Format(e,t){if(n.FormatRegistry.Has(e))throw new TypeSystemDuplicateFormat(e);n.FormatRegistry.Set(e,t);return e}e.Format=Format})(a||(t.TypeSystem=a={}))},57815:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Any=Any;const n=r(97034);function Any(e={}){return{...e,[n.Kind]:"Any"}}},36813:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(57815),t)},45311:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Array=Array;const n=r(38100);const s=r(97034);function Array(e,t={}){return{...t,[s.Kind]:"Array",type:"array",items:(0,n.CloneType)(e)}}},17186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(45311),t)},15007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AsyncIterator=AsyncIterator;const n=r(97034);const s=r(38100);function AsyncIterator(e,t={}){return{...t,[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,s.CloneType)(e)}}},68092:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15007),t)},68263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Awaited=Awaited;const n=r(62746);const s=r(69100);const o=r(38100);const i=r(96994);function FromRest(e){return e.map((e=>AwaitedResolve(e)))}function FromIntersect(e){return(0,n.Intersect)(FromRest(e))}function FromUnion(e){return(0,s.Union)(FromRest(e))}function FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return(0,i.IsIntersect)(e)?FromIntersect(e.allOf):(0,i.IsUnion)(e)?FromUnion(e.anyOf):(0,i.IsPromise)(e)?FromPromise(e.item):e}function Awaited(e,t={}){return(0,o.CloneType)(AwaitedResolve(e),t)}},85164:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(68263),t)},9495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BigInt=BigInt;const n=r(97034);function BigInt(e={}){return{...e,[n.Kind]:"BigInt",type:"bigint"}}},13278:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(9495),t)},53715:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Boolean=Boolean;const n=r(97034);function Boolean(e={}){return{...e,[n.Kind]:"Boolean",type:"boolean"}}},64515:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(53715),t)},14150:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(38100),t);s(r(80387),t)},38100:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CloneRest=CloneRest;t.CloneType=CloneType;const n=r(80387);function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...(0,n.Clone)(e),...t}}},80387:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(13415);function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return n.IsArray(e)?ArrayType(e):n.IsDate(e)?DateType(e):n.IsUint8Array(e)?Uint8ArrayType(e):n.IsRegExp(e)?RegExpType(e):n.IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}},67263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Composite=Composite;const n=r(62746);const s=r(86918);const o=r(73373);const i=r(62094);const a=r(12760);const c=r(96994);function CompositeKeys(e){const t=[];for(const r of e)t.push(...(0,o.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}function FilterNever(e){return e.filter((e=>!(0,c.IsNever)(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...(0,s.IndexFromPropertyKeys)(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const s of t){r[s]=(0,n.IntersectEvaluated)(CompositeProperty(e,s))}return r}function Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=(0,i.Object)(n,t);return s}},80788:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67263),t)},54191:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Const=Const;const n=r(36813);const s=r(13278);const o=r(49305);const i=r(29857);const a=r(98076);const c=r(50468);const u=r(62094);const A=r(2129);const l=r(7521);const d=r(40675);const p=r(96231);const g=r(45760);const h=r(51897);const m=r(14150);const E=r(13415);function FromArray(e){return e.map((e=>FromValue(e,false)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,d.Readonly)(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:(0,d.Readonly)(e)}function FromValue(e,t){return(0,E.IsAsyncIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsIterator)(e)?ConditionalReadonly((0,n.Any)(),t):(0,E.IsArray)(e)?(0,d.Readonly)((0,l.Tuple)(FromArray(e))):(0,E.IsUint8Array)(e)?(0,g.Uint8Array)():(0,E.IsDate)(e)?(0,o.Date)():(0,E.IsObject)(e)?ConditionalReadonly((0,u.Object)(FromProperties(e)),t):(0,E.IsFunction)(e)?ConditionalReadonly((0,i.Function)([],(0,h.Unknown)()),t):(0,E.IsUndefined)(e)?(0,p.Undefined)():(0,E.IsNull)(e)?(0,c.Null)():(0,E.IsSymbol)(e)?(0,A.Symbol)():(0,E.IsBigInt)(e)?(0,s.BigInt)():(0,E.IsNumber)(e)?(0,a.Literal)(e):(0,E.IsBoolean)(e)?(0,a.Literal)(e):(0,E.IsString)(e)?(0,a.Literal)(e):(0,u.Object)({})}function Const(e,t={}){return(0,m.CloneType)(FromValue(e,true),t)}},19236:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(54191),t)},96127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ConstructorParameters=ConstructorParameters;const n=r(7521);const s=r(38100);function ConstructorParameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},58562:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(96127),t)},89035:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Constructor=Constructor;const n=r(38100);const s=r(97034);function Constructor(e,t,r){return{...r,[s.Kind]:"Constructor",type:"Constructor",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},16939:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89035),t)},7617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Date=Date;const n=r(97034);function Date(e={}){return{...e,[n.Kind]:"Date",type:"Date"}}},49305:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7617),t)},79911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deref=Deref;const n=r(38100);const s=r(83889);const o=r(13415);const i=r(96994);function FromRest(e,t){return e.map((e=>Deref(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=Deref(e[n],t)}return r}function FromConstructor(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromFunction(e,t){e.parameters=FromRest(e.parameters,t);e.returns=Deref(e.returns,t);return e}function FromIntersect(e,t){e.allOf=FromRest(e.allOf,t);return e}function FromUnion(e,t){e.anyOf=FromRest(e.anyOf,t);return e}function FromTuple(e,t){if((0,o.IsUndefined)(e.items))return e;e.items=FromRest(e.items,t);return e}function FromArray(e,t){e.items=Deref(e.items,t);return e}function FromObject(e,t){e.properties=FromProperties(e.properties,t);return e}function FromPromise(e,t){e.item=Deref(e.item,t);return e}function FromAsyncIterator(e,t){e.items=Deref(e.items,t);return e}function FromIterator(e,t){e.items=Deref(e.items,t);return e}function FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=(0,s.Discard)(r,["$id"]);return Deref(n,t)}function DerefResolve(e,t){return(0,i.IsConstructor)(e)?FromConstructor(e,t):(0,i.IsFunction)(e)?FromFunction(e,t):(0,i.IsIntersect)(e)?FromIntersect(e,t):(0,i.IsUnion)(e)?FromUnion(e,t):(0,i.IsTuple)(e)?FromTuple(e,t):(0,i.IsArray)(e)?FromArray(e,t):(0,i.IsObject)(e)?FromObject(e,t):(0,i.IsPromise)(e)?FromPromise(e,t):(0,i.IsAsyncIterator)(e)?FromAsyncIterator(e,t):(0,i.IsIterator)(e)?FromIterator(e,t):(0,i.IsRef)(e)?FromRef(e,t):e}function Deref(e,t){return DerefResolve((0,n.CloneType)(e),(0,n.CloneRest)(t))}},911:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79911),t)},8147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Discard=Discard;function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}},83889:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8147),t)},77991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Enum=Enum;const n=r(98076);const s=r(97034);const o=r(69100);const i=r(13415);function Enum(e,t={}){if((0,i.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const a=[...new Set(r)];const c=a.map((e=>(0,n.Literal)(e)));return(0,o.Union)(c,{...t,[s.Hint]:"Enum"})}},98056:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(77991),t)},85523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(e){super(e)}}t.TypeBoxError=TypeBoxError},26113:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85523),t)},92094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromMappedResult=ExcludeFromMappedResult;const n=r(41094);const s=r(63651);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Exclude)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},9505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral;const n=r(63651);const s=r(26609);function ExcludeFromTemplateLiteral(e,t){return(0,n.Exclude)((0,s.TemplateLiteralToUnion)(e),t)}},63651:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Exclude=Exclude;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(92094);const c=r(9505);const u=r(96994);function ExcludeRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Exclude(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExcludeFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExcludeFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExcludeRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)}},41153:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92094),t);s(r(9505),t);s(r(63651),t)},18410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsResult=t.ExtendsResolverError=void 0;t.ExtendsCheck=ExtendsCheck;const n=r(36813);const s=r(29857);const o=r(85544);const i=r(81688);const a=r(51897);const c=r(26609);const u=r(94354);const A=r(97034);const l=r(26113);const d=r(64754);class ExtendsResolverError extends l.TypeBoxError{}t.ExtendsResolverError=ExtendsResolverError;var p;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(p||(t.ExtendsResult=p={}));function IntoBooleanResult(e){return e===p.False?e:p.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return d.TypeGuard.IsNever(e)||d.TypeGuard.IsIntersect(e)||d.TypeGuard.IsUnion(e)||d.TypeGuard.IsUnknown(e)||d.TypeGuard.IsAny(e)}function StructuralRight(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return p.True}function FromAny(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)&&t.anyOf.some((e=>d.TypeGuard.IsAny(e)||d.TypeGuard.IsUnknown(e)))?p.True:d.TypeGuard.IsUnion(t)?p.Union:d.TypeGuard.IsUnknown(t)?p.True:d.TypeGuard.IsAny(t)?p.True:p.Union}function FromArrayRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)?p.True:p.False}function FromArray(e,t){return d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsArray(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsAsyncIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBigInt(t)?p.True:p.False}function FromBooleanRight(e,t){return d.TypeGuard.IsLiteralBoolean(e)?p.True:d.TypeGuard.IsBoolean(e)?p.True:p.False}function FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsBoolean(t)?p.True:p.False}function FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsConstructor(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsDate(t)?p.True:p.False}function FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsFunction(t)?p.False:e.parameters.length>t.parameters.length?p.False:!e.parameters.every(((e,r)=>IntoBooleanResult(Visit(t.parameters[r],e))===p.True))?p.False:IntoBooleanResult(Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsNumber(e.const)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromInteger(e,t){return d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):p.False}function FromIntersectRight(e,t){return t.allOf.every((t=>Visit(e,t)===p.True))?p.True:p.False}function FromIntersect(e,t){return e.allOf.some((e=>Visit(e,t)===p.True))?p.True:p.False}function FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!d.TypeGuard.IsIterator(t)?p.False:IntoBooleanResult(Visit(e.items,t.items))}function FromLiteral(e,t){return d.TypeGuard.IsLiteral(t)&&t.const===e.const?p.True:IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):p.False}function FromNeverRight(e,t){return p.False}function FromNever(e,t){return p.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!d.TypeGuard.IsNot(t))break;t=t.not;r+=1}return r%2===0?t:(0,a.Unknown)()}function FromNot(e,t){return d.TypeGuard.IsNot(e)?Visit(UnwrapTNot(e),t):d.TypeGuard.IsNot(t)?Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsNull(t)?p.True:p.False}function FromNumberRight(e,t){return d.TypeGuard.IsLiteralNumber(e)?p.True:d.TypeGuard.IsNumber(e)||d.TypeGuard.IsInteger(e)?p.True:p.False}function FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsInteger(t)||d.TypeGuard.IsNumber(t)?p.True:p.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&d.TypeGuard.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(d.TypeGuard.IsString(e.properties.description.anyOf[0])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||d.TypeGuard.IsString(e.properties.description.anyOf[1])&&d.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=(0,o.Number)();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(Visit(e.properties["length"],t))===p.True}function IsObjectPromiseLike(e){const t=(0,s.Function)([(0,n.Any)()],(0,n.Any)());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(Visit(e.properties["then"],t))===p.True}function Property(e,t){return Visit(e,t)===p.False?p.False:d.TypeGuard.IsOptional(e)&&!d.TypeGuard.IsOptional(t)?p.False:p.True}function FromObjectRight(e,t){return d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:d.TypeGuard.IsNever(e)||d.TypeGuard.IsLiteralString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsLiteralNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsBigInt(e)&&IsObjectBigIntLike(t)||d.TypeGuard.IsString(e)&&IsObjectStringLike(t)||d.TypeGuard.IsSymbol(e)&&IsObjectSymbolLike(t)||d.TypeGuard.IsNumber(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsInteger(e)&&IsObjectNumberLike(t)||d.TypeGuard.IsBoolean(e)&&IsObjectBooleanLike(t)||d.TypeGuard.IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||d.TypeGuard.IsDate(e)&&IsObjectDateLike(t)||d.TypeGuard.IsConstructor(e)&&IsObjectConstructorLike(t)||d.TypeGuard.IsFunction(e)&&IsObjectFunctionLike(t)?p.True:d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsString(RecordKey(e))?(()=>t[A.Hint]==="Record"?p.True:p.False)():d.TypeGuard.IsRecord(e)&&d.TypeGuard.IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?p.True:p.False)():p.False}function FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):!d.TypeGuard.IsObject(t)?p.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!d.TypeGuard.IsOptional(t.properties[r])){return p.False}if(d.TypeGuard.IsOptional(t.properties[r])){return p.True}if(Property(e.properties[r],t.properties[r])===p.False){return p.False}}return p.True})()}function FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectPromiseLike(t)?p.True:!d.TypeGuard.IsPromise(t)?p.False:IntoBooleanResult(Visit(e.item,t.item))}function RecordKey(e){return u.PatternNumberExact in e.patternProperties?(0,o.Number)():u.PatternStringExact in e.patternProperties?(0,i.String)():Throw("Unknown record key pattern")}function RecordValue(e){return u.PatternNumberExact in e.patternProperties?e.patternProperties[u.PatternNumberExact]:u.PatternStringExact in e.patternProperties?e.patternProperties[u.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return d.TypeGuard.IsLiteralString(e)&&d.TypeGuard.IsNumber(r)&&IntoBooleanResult(Visit(e,n))===p.True?p.True:d.TypeGuard.IsUint8Array(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsString(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsArray(e)&&d.TypeGuard.IsNumber(r)?Visit(e,n):d.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===p.False){return p.False}}return p.True})():p.False}function FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):!d.TypeGuard.IsRecord(t)?p.False:Visit(RecordValue(e),RecordValue(t))}function FromRegExp(e,t){const r=d.TypeGuard.IsRegExp(e)?(0,i.String)():e;const n=d.TypeGuard.IsRegExp(t)?(0,i.String)():t;return Visit(r,n)}function FromStringRight(e,t){return d.TypeGuard.IsLiteral(e)&&d.ValueGuard.IsString(e.const)?p.True:d.TypeGuard.IsString(e)?p.True:p.False}function FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsString(t)?p.True:p.False}function FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsSymbol(t)?p.True:p.False}function FromTemplateLiteral(e,t){return d.TypeGuard.IsTemplateLiteral(e)?Visit((0,c.TemplateLiteralToUnion)(e),t):d.TypeGuard.IsTemplateLiteral(t)?Visit(e,(0,c.TemplateLiteralToUnion)(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return d.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every((e=>Visit(e,t.items)===p.True))}function FromTupleRight(e,t){return d.TypeGuard.IsNever(e)?p.True:d.TypeGuard.IsUnknown(e)?p.False:d.TypeGuard.IsAny(e)?p.Union:p.False}function FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)&&IsObjectArrayLike(t)?p.True:d.TypeGuard.IsArray(t)&&IsArrayOfTuple(e,t)?p.True:!d.TypeGuard.IsTuple(t)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)||!d.ValueGuard.IsUndefined(e.items)&&d.ValueGuard.IsUndefined(t.items)?p.False:d.ValueGuard.IsUndefined(e.items)&&!d.ValueGuard.IsUndefined(t.items)?p.True:e.items.every(((e,r)=>Visit(e,t.items[r])===p.True))?p.True:p.False}function FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsUint8Array(t)?p.True:p.False}function FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsRecord(t)?FromRecordRight(e,t):d.TypeGuard.IsVoid(t)?FromVoidRight(e,t):d.TypeGuard.IsUndefined(t)?p.True:p.False}function FromUnionRight(e,t){return t.anyOf.some((t=>Visit(e,t)===p.True))?p.True:p.False}function FromUnion(e,t){return e.anyOf.every((e=>Visit(e,t)===p.True))?p.True:p.False}function FromUnknownRight(e,t){return p.True}function FromUnknown(e,t){return d.TypeGuard.IsNever(t)?FromNeverRight(e,t):d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsString(t)?FromStringRight(e,t):d.TypeGuard.IsNumber(t)?FromNumberRight(e,t):d.TypeGuard.IsInteger(t)?FromIntegerRight(e,t):d.TypeGuard.IsBoolean(t)?FromBooleanRight(e,t):d.TypeGuard.IsArray(t)?FromArrayRight(e,t):d.TypeGuard.IsTuple(t)?FromTupleRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsUnknown(t)?p.True:p.False}function FromVoidRight(e,t){return d.TypeGuard.IsUndefined(e)?p.True:d.TypeGuard.IsUndefined(e)?p.True:p.False}function FromVoid(e,t){return d.TypeGuard.IsIntersect(t)?FromIntersectRight(e,t):d.TypeGuard.IsUnion(t)?FromUnionRight(e,t):d.TypeGuard.IsUnknown(t)?FromUnknownRight(e,t):d.TypeGuard.IsAny(t)?FromAnyRight(e,t):d.TypeGuard.IsObject(t)?FromObjectRight(e,t):d.TypeGuard.IsVoid(t)?p.True:p.False}function Visit(e,t){return d.TypeGuard.IsTemplateLiteral(e)||d.TypeGuard.IsTemplateLiteral(t)?FromTemplateLiteral(e,t):d.TypeGuard.IsRegExp(e)||d.TypeGuard.IsRegExp(t)?FromRegExp(e,t):d.TypeGuard.IsNot(e)||d.TypeGuard.IsNot(t)?FromNot(e,t):d.TypeGuard.IsAny(e)?FromAny(e,t):d.TypeGuard.IsArray(e)?FromArray(e,t):d.TypeGuard.IsBigInt(e)?FromBigInt(e,t):d.TypeGuard.IsBoolean(e)?FromBoolean(e,t):d.TypeGuard.IsAsyncIterator(e)?FromAsyncIterator(e,t):d.TypeGuard.IsConstructor(e)?FromConstructor(e,t):d.TypeGuard.IsDate(e)?FromDate(e,t):d.TypeGuard.IsFunction(e)?FromFunction(e,t):d.TypeGuard.IsInteger(e)?FromInteger(e,t):d.TypeGuard.IsIntersect(e)?FromIntersect(e,t):d.TypeGuard.IsIterator(e)?FromIterator(e,t):d.TypeGuard.IsLiteral(e)?FromLiteral(e,t):d.TypeGuard.IsNever(e)?FromNever(e,t):d.TypeGuard.IsNull(e)?FromNull(e,t):d.TypeGuard.IsNumber(e)?FromNumber(e,t):d.TypeGuard.IsObject(e)?FromObject(e,t):d.TypeGuard.IsRecord(e)?FromRecord(e,t):d.TypeGuard.IsString(e)?FromString(e,t):d.TypeGuard.IsSymbol(e)?FromSymbol(e,t):d.TypeGuard.IsTuple(e)?FromTuple(e,t):d.TypeGuard.IsPromise(e)?FromPromise(e,t):d.TypeGuard.IsUint8Array(e)?FromUint8Array(e,t):d.TypeGuard.IsUndefined(e)?FromUndefined(e,t):d.TypeGuard.IsUnion(e)?FromUnion(e,t):d.TypeGuard.IsUnknown(e)?FromUnknown(e,t):d.TypeGuard.IsVoid(e)?FromVoid(e,t):Throw(`Unknown left type operand '${e[A.Kind]}'`)}function ExtendsCheck(e,t){return Visit(e,t)}},83948:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedKey=ExtendsFromMappedKey;const n=r(41094);const s=r(98076);const o=r(34263);function FromPropertyKey(e,t,r,n,i){return{[e]:(0,o.Extends)((0,s.Literal)(e),t,r,n,i)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,s,o){const i=FromMappedKey(e,t,r,s,o);return(0,n.MappedResult)(i)}},80338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsFromMappedResult=ExtendsFromMappedResult;const n=r(41094);const s=r(34263);function FromProperties(e,t,r,n,o){const i={};for(const a of globalThis.Object.getOwnPropertyNames(e))i[a]=(0,s.Extends)(e[a],t,r,n,o);return i}function FromMappedResult(e,t,r,n,s){return FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,s,o){const i=FromMappedResult(e,t,r,s,o);return(0,n.MappedResult)(i)}},82486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtendsUndefinedCheck=ExtendsUndefinedCheck;const n=r(97034);function Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[n.Kind]==="Intersect"?Intersect(e):e[n.Kind]==="Union"?Union(e):e[n.Kind]==="Not"?Not(e):e[n.Kind]==="Undefined"?true:false}},34263:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extends=Extends;const n=r(69100);const s=r(18410);const o=r(38100);const i=r(83948);const a=r(80338);const c=r(96994);function ExtendsResolve(e,t,r,o){const i=(0,s.ExtendsCheck)(e,t);return i===s.ExtendsResult.Union?(0,n.Union)([r,o]):i===s.ExtendsResult.True?r:o}function Extends(e,t,r,n,s={}){return(0,c.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,n,s):(0,c.IsMappedKey)(e)?(0,o.CloneType)((0,i.ExtendsFromMappedKey)(e,t,r,n,s)):(0,o.CloneType)(ExtendsResolve(e,t,r,n),s)}},94850:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(18410),t);s(r(83948),t);s(r(80338),t);s(r(82486),t);s(r(34263),t)},70826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromMappedResult=ExtractFromMappedResult;const n=r(41094);const s=r(4847);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Extract)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},50253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral;const n=r(4847);const s=r(26609);function ExtractFromTemplateLiteral(e,t){return(0,n.Extract)((0,s.TemplateLiteralToUnion)(e),t)}},4847:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Extract=Extract;const n=r(69100);const s=r(54025);const o=r(94850);const i=r(38100);const a=r(70826);const c=r(50253);const u=r(96994);function ExtractRest(e,t){const r=e.filter((e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False));return r.length===1?r[0]:(0,n.Union)(r)}function Extract(e,t,r={}){if((0,u.IsTemplateLiteral)(e))return(0,i.CloneType)((0,c.ExtractFromTemplateLiteral)(e,t),r);if((0,u.IsMappedResult)(e))return(0,i.CloneType)((0,a.ExtractFromMappedResult)(e,t),r);return(0,i.CloneType)((0,u.IsUnion)(e)?ExtractRest(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)}},69682:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(70826),t);s(r(50253),t);s(r(4847),t)},93649:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Function=Function;const n=r(38100);const s=r(97034);function Function(e,t,r){return{...r,[s.Kind]:"Function",type:"Function",parameters:(0,n.CloneRest)(e),returns:(0,n.CloneType)(t)}}},29857:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(93649),t)},64754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueGuard=t.TypeGuard=t.KindGuard=void 0;t.KindGuard=r(96994);t.TypeGuard=r(70384);t.ValueGuard=r(13415)},96994:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function IsArray(e){return IsKindOf(e,"Array")}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function IsBigInt(e){return IsKindOf(e,"BigInt")}function IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function IsDate(e){return IsKindOf(e,"Date")}function IsFunction(e){return IsKindOf(e,"Function")}function IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return n.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function IsNull(e){return IsKindOf(e,"Null")}function IsNumber(e){return IsKindOf(e,"Number")}function IsObject(e){return IsKindOf(e,"Object")}function IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function IsRegExp(e){return IsKindOf(e,"RegExp")}function IsString(e){return IsKindOf(e,"String")}function IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])}function IsSchema(e){return IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}},70384:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeGuardUnknownTypeError=void 0;t.IsReadonly=IsReadonly;t.IsOptional=IsOptional;t.IsAny=IsAny;t.IsArray=IsArray;t.IsAsyncIterator=IsAsyncIterator;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsConstructor=IsConstructor;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsInteger=IsInteger;t.IsProperties=IsProperties;t.IsIntersect=IsIntersect;t.IsIterator=IsIterator;t.IsKindOf=IsKindOf;t.IsLiteralString=IsLiteralString;t.IsLiteralNumber=IsLiteralNumber;t.IsLiteralBoolean=IsLiteralBoolean;t.IsLiteral=IsLiteral;t.IsLiteralValue=IsLiteralValue;t.IsMappedKey=IsMappedKey;t.IsMappedResult=IsMappedResult;t.IsNever=IsNever;t.IsNot=IsNot;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsPromise=IsPromise;t.IsRecord=IsRecord;t.IsRecursive=IsRecursive;t.IsRef=IsRef;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsTemplateLiteral=IsTemplateLiteral;t.IsThis=IsThis;t.IsTransform=IsTransform;t.IsTuple=IsTuple;t.IsUndefined=IsUndefined;t.IsUnionLiteral=IsUnionLiteral;t.IsUnion=IsUnion;t.IsUint8Array=IsUint8Array;t.IsUnknown=IsUnknown;t.IsUnsafe=IsUnsafe;t.IsVoid=IsVoid;t.IsKind=IsKind;t.IsSchema=IsSchema;const n=r(13415);const s=r(97034);const o=r(26113);class TypeGuardUnknownTypeError extends o.TypeBoxError{}t.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const i=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!n.IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||IsSchema(e)}function IsOptionalBigInt(e){return n.IsUndefined(e)||n.IsBigInt(e)}function IsOptionalNumber(e){return n.IsUndefined(e)||n.IsNumber(e)}function IsOptionalBoolean(e){return n.IsUndefined(e)||n.IsBoolean(e)}function IsOptionalString(e){return n.IsUndefined(e)||n.IsString(e)}function IsOptionalPattern(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return n.IsUndefined(e)||n.IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return n.IsUndefined(e)||IsSchema(e)}function IsReadonly(e){return n.IsObject(e)&&e[s.ReadonlyKind]==="Readonly"}function IsOptional(e){return n.IsObject(e)&&e[s.OptionalKind]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function IsArray(e){return IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsBigInt(e){return IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function IsBoolean(e){return IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function IsConstructor(e){return IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsDate(e){return IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function IsFunction(e){return IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every((e=>IsSchema(e)))&&IsSchema(e.returns)}function IsInteger(e){return IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsProperties(e){return n.IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&IsSchema(t)))}function IsIntersect(e){return IsKindOf(e,"Intersect")&&(n.IsString(e.type)&&e.type!=="object"?false:true)&&n.IsArray(e.allOf)&&e.allOf.every((e=>IsSchema(e)&&!IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function IsIterator(e){return IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&IsSchema(e.items)}function IsKindOf(e,t){return n.IsObject(e)&&s.Kind in e&&e[s.Kind]===t}function IsLiteralString(e){return IsLiteral(e)&&n.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&n.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&n.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function IsMappedKey(e){return IsKindOf(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every((e=>n.IsNumber(e)||n.IsString(e)))}function IsMappedResult(e){return IsKindOf(e,"MappedResult")&&IsProperties(e.properties)}function IsNever(e){return IsKindOf(e,"Never")&&n.IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function IsNot(e){return IsKindOf(e,"Not")&&IsSchema(e.not)}function IsNull(e){return IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function IsNumber(e){return IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function IsObject(e){return IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function IsPromise(e){return IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&IsSchema(e.item)}function IsRecord(e){return IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&n.IsObject(e.patternProperties)&&IsSchema(e.patternProperties[t[0]])})(e)}function IsRecursive(e){return n.IsObject(e)&&s.Hint in e&&e[s.Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsRegExp(e){return IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function IsString(e){return IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function IsSymbol(e){return IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&n.IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function IsThis(e){return IsKindOf(e,"This")&&IsOptionalString(e.$id)&&n.IsString(e.$ref)}function IsTransform(e){return n.IsObject(e)&&s.TransformKind in e}function IsTuple(e){return IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&e.minItems===0||n.IsArray(e.items)&&e.items.every((e=>IsSchema(e))))}function IsUndefined(e){return IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return IsUnion(e)&&e.anyOf.every((e=>IsLiteralString(e)||IsLiteralNumber(e)))}function IsUnion(e){return IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every((e=>IsSchema(e)))}function IsUint8Array(e){return IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function IsUnknown(e){return IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function IsKind(e){return n.IsObject(e)&&s.Kind in e&&n.IsString(e[s.Kind])&&!i.includes(e[s.Kind])}function IsSchema(e){return n.IsObject(e)&&(IsAny(e)||IsArray(e)||IsBoolean(e)||IsBigInt(e)||IsAsyncIterator(e)||IsConstructor(e)||IsDate(e)||IsFunction(e)||IsInteger(e)||IsIntersect(e)||IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||IsNull(e)||IsNumber(e)||IsObject(e)||IsPromise(e)||IsRecord(e)||IsRef(e)||IsRegExp(e)||IsString(e)||IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||IsUndefined(e)||IsUnion(e)||IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e))}},13415:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsArray=IsArray;t.IsBigInt=IsBigInt;t.IsBoolean=IsBoolean;t.IsDate=IsDate;t.IsFunction=IsFunction;t.IsIterator=IsIterator;t.IsNull=IsNull;t.IsNumber=IsNumber;t.IsObject=IsObject;t.IsRegExp=IsRegExp;t.IsString=IsString;t.IsSymbol=IsSymbol;t.IsUint8Array=IsUint8Array;t.IsUndefined=IsUndefined;function IsAsyncIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.asyncIterator in e}function IsArray(e){return Array.isArray(e)}function IsBigInt(e){return typeof e==="bigint"}function IsBoolean(e){return typeof e==="boolean"}function IsDate(e){return e instanceof globalThis.Date}function IsFunction(e){return typeof e==="function"}function IsIterator(e){return IsObject(e)&&!IsArray(e)&&!IsUint8Array(e)&&Symbol.iterator in e}function IsNull(e){return e===null}function IsNumber(e){return typeof e==="number"}function IsObject(e){return typeof e==="object"&&e!==null}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsString(e){return typeof e==="string"}function IsSymbol(e){return typeof e==="symbol"}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUndefined(e){return e===undefined}},87943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Increment=Increment;function Increment(e){return(parseInt(e)+1).toString()}},57782:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(87943),t)},86918:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66904),t);s(r(80494),t);s(r(65774),t);s(r(11795),t)},66904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedKey=IndexFromMappedKey;const n=r(11795);const s=r(41094);function MappedIndexPropertyKey(e,t,r){return{[t]:(0,n.Index)(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return(0,s.MappedResult)(n)}},80494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromMappedResult=IndexFromMappedResult;const n=r(41094);const s=r(65774);const o=r(86918);function FromProperties(e,t,r){const n={};for(const i of Object.getOwnPropertyNames(t)){n[i]=(0,o.Index)(e,(0,s.IndexPropertyKeys)(t[i]),r)}return n}function FromMappedResult(e,t,r){return FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65774:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexPropertyKeys=IndexPropertyKeys;const n=r(26609);const s=r(96994);function FromTemplateLiteral(e){const t=(0,n.TemplateLiteralGenerate)(e);return t.map((e=>e.toString()))}function FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set((0,s.IsTemplateLiteral)(e)?FromTemplateLiteral(e):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsLiteral)(e)?FromLiteral(e.const):(0,s.IsNumber)(e)?["[number]"]:(0,s.IsInteger)(e)?["[number]"]:[])]}},11795:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IndexFromPropertyKey=IndexFromPropertyKey;t.IndexFromPropertyKeys=IndexFromPropertyKeys;t.Index=Index;const n=r(54025);const s=r(62746);const o=r(69100);const i=r(38100);const a=r(65774);const c=r(66904);const u=r(80494);const A=r(96994);function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!(0,A.IsNever)(e)))}function FromIntersect(e,t){return(0,s.IntersectEvaluated)(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>(0,A.IsNever)(e)))?[]:e}function FromUnion(e,t){return(0,o.UnionEvaluated)(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?(0,o.UnionEvaluated)(e):(0,n.Never)()}function FromArray(e,t){return t==="[number]"?e:(0,n.Never)()}function FromProperty(e,t){return t in e?e[t]:(0,n.Never)()}function IndexFromPropertyKey(e,t){return(0,A.IsIntersect)(e)?FromIntersect(e.allOf,t):(0,A.IsUnion)(e)?FromUnion(e.anyOf,t):(0,A.IsTuple)(e)?FromTuple(e.items??[],t):(0,A.IsArray)(e)?FromArray(e.items,t):(0,A.IsObject)(e)?FromProperty(e.properties,t):(0,n.Never)()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return(0,o.UnionEvaluated)(IndexFromPropertyKeys(e,t))}function Index(e,t,r={}){return(0,A.IsMappedResult)(t)?(0,i.CloneType)((0,u.IndexFromMappedResult)(e,t,r)):(0,A.IsMappedKey)(t)?(0,i.CloneType)((0,c.IndexFromMappedKey)(e,t,r)):(0,A.IsSchema)(t)?(0,i.CloneType)(FromSchema(e,(0,a.IndexPropertyKeys)(t)),r):(0,i.CloneType)(FromSchema(e,t),r)}},26277:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79659),t)},79659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.InstanceType=InstanceType;const n=r(38100);function InstanceType(e,t={}){return(0,n.CloneType)(e.returns,t)}},4949:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(76295),t)},76295:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Integer=Integer;const n=r(97034);function Integer(e={}){return{...e,[n.Kind]:"Integer",type:"integer"}}},62746:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(89995),t);s(r(35212),t);s(r(26015),t)},57604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectCreate=IntersectCreate;const n=r(97034);const s=r(38100);const o=r(96994);function IntersectCreate(e,t){const r=e.every((e=>(0,o.IsObject)(e)));const i=(0,o.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:(0,s.CloneType)(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||(0,o.IsSchema)(t.unevaluatedProperties)||r?{...t,...i,[n.Kind]:"Intersect",type:"object",allOf:(0,s.CloneRest)(e)}:{...t,...i,[n.Kind]:"Intersect",allOf:(0,s.CloneRest)(e)}}},89995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntersectEvaluated=IntersectEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(57604);const u=r(96994);function IsIntersectOptional(e){return e.every((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?(0,a.Optional)((0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)):(0,c.IntersectCreate)(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return(0,i.Never)(t);if(e.length===1)return(0,s.CloneType)(e[0],t);if(e.some((e=>(0,u.IsTransform)(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}},35212:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},26015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intersect=Intersect;const n=r(38100);const s=r(54025);const o=r(57604);const i=r(96994);function Intersect(e,t={}){if(e.length===0)return(0,s.Never)(t);if(e.length===1)return(0,n.CloneType)(e[0],t);if(e.some((e=>(0,i.IsTransform)(e))))throw new Error("Cannot intersect transform types");return(0,o.IntersectCreate)(e,t)}},15400:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Capitalize=Capitalize;const n=r(39015);function Capitalize(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)}},30568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(15400),t);s(r(71804),t);s(r(39015),t);s(r(13161),t);s(r(57019),t);s(r(80968),t)},71804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.IntrinsicFromMappedKey=IntrinsicFromMappedKey;const n=r(41094);const s=r(39015);const o=r(98076);function MappedIntrinsicPropertyKey(e,t,r){return{[e]:(0,s.Intrinsic)((0,o.Literal)(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const s=MappedIntrinsicProperties(e,t,r);return(0,n.MappedResult)(s)}},39015:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Intrinsic=Intrinsic;const n=r(26609);const s=r(71804);const o=r(98076);const i=r(69100);const a=r(96994);function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function FromTemplateLiteral(e,t,r){const s=(0,n.TemplateLiteralParseExact)(e.pattern);const a=(0,n.IsTemplateLiteralExpressionFinite)(s);if(!a)return{...e,pattern:FromLiteralValue(e.pattern,t)};const c=[...(0,n.TemplateLiteralExpressionGenerate)(s)];const u=c.map((e=>(0,o.Literal)(e)));const A=FromRest(u,t);const l=(0,i.Union)(A);return(0,n.TemplateLiteral)([l],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return(0,a.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,a.IsTemplateLiteral)(e)?FromTemplateLiteral(e,t,e):(0,a.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf,t),r):(0,a.IsLiteral)(e)?(0,o.Literal)(FromLiteralValue(e.const,t),r):e}},13161:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lowercase=Lowercase;const n=r(39015);function Lowercase(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)}},57019:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uncapitalize=Uncapitalize;const n=r(39015);function Uncapitalize(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)}},80968:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uppercase=Uppercase;const n=r(39015);function Uppercase(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)}},35907:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(78493),t)},78493:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Iterator=Iterator;const n=r(38100);const s=r(97034);function Iterator(e,t={}){return{...t,[s.Kind]:"Iterator",type:"Iterator",items:(0,n.CloneType)(e)}}},73373:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(19642),t);s(r(740),t);s(r(33930),t);s(r(36895),t)},19642:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfFromMappedResult=KeyOfFromMappedResult;const n=r(41094);const s=r(36895);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.KeyOf)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},740:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyEntries=KeyOfPropertyEntries;const n=r(11795);const s=r(33930);function KeyOfPropertyEntries(e){const t=(0,s.KeyOfPropertyKeys)(e);const r=(0,n.IndexFromPropertyKeys)(e,t);return t.map(((e,n)=>[t[n],r[n]]))}},33930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeys=KeyOfPropertyKeys;t.KeyOfPattern=KeyOfPattern;const n=r(12760);const s=r(96994);function FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function FromIntersect(e){const t=FromRest(e);const r=(0,n.SetUnionMany)(t);return r}function FromUnion(e){const t=FromRest(e);const r=(0,n.SetIntersectMany)(t);return r}function FromTuple(e){return e.map(((e,t)=>t.toString()))}function FromArray(e){return["[number]"]}function FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!o)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return(0,s.IsIntersect)(e)?FromIntersect(e.allOf):(0,s.IsUnion)(e)?FromUnion(e.anyOf):(0,s.IsTuple)(e)?FromTuple(e.items??[]):(0,s.IsArray)(e)?FromArray(e.items):(0,s.IsObject)(e)?FromProperties(e.properties):(0,s.IsRecord)(e)?FromPatternProperties(e.patternProperties):[]}let o=false;function KeyOfPattern(e){o=true;const t=KeyOfPropertyKeys(e);o=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}},36895:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;t.KeyOf=KeyOf;const n=r(98076);const s=r(85544);const o=r(33930);const i=r(69100);const a=r(38100);const c=r(19642);const u=r(96994);function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?(0,s.Number)():(0,n.Literal)(e)))}function KeyOf(e,t={}){if((0,u.IsMappedResult)(e)){return(0,c.KeyOfFromMappedResult)(e,t)}else{const r=(0,o.KeyOfPropertyKeys)(e);const n=KeyOfPropertyKeysToRest(r);const s=(0,i.UnionEvaluated)(n);return(0,a.CloneType)(s,t)}}},98076:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(31591),t)},31591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Literal=Literal;const n=r(97034);function Literal(e,t={}){return{...t,[n.Kind]:"Literal",const:e,type:typeof e}}},41094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35613),t);s(r(67517),t);s(r(90467),t)},35613:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedKey=MappedKey;const n=r(97034);function MappedKey(e){return{[n.Kind]:"MappedKey",keys:e}}},67517:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedResult=MappedResult;const n=r(97034);function MappedResult(e){return{[n.Kind]:"MappedResult",properties:e}}},90467:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MappedFunctionReturnType=MappedFunctionReturnType;t.Mapped=Mapped;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(17186);const a=r(68092);const c=r(16939);const u=r(29857);const A=r(86918);const l=r(62746);const d=r(35907);const p=r(98076);const g=r(62094);const h=r(38425);const m=r(70062);const E=r(40675);const y=r(7521);const I=r(69100);const C=r(12760);const b=r(67517);const B=r(96994);function FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):(0,b.MappedResult)(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:(0,p.Literal)(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=(0,p.Literal)(r);return t}function MappedKeyToMappedResultProperties(e,t){return(0,C.SetIncludes)(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return FromMappedResult(e,r)}function FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return(0,B.IsOptional)(t)?(0,h.Optional)(FromSchemaType(e,(0,o.Discard)(t,[n.OptionalKind]))):(0,B.IsReadonly)(t)?(0,E.Readonly)(FromSchemaType(e,(0,o.Discard)(t,[n.ReadonlyKind]))):(0,B.IsMappedResult)(t)?FromMappedResult(e,t.properties):(0,B.IsMappedKey)(t)?FromMappedKey(e,t.keys):(0,B.IsConstructor)(t)?(0,c.Constructor)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsFunction)(t)?(0,u.Function)(FromRest(e,t.parameters),FromSchemaType(e,t.returns)):(0,B.IsAsyncIterator)(t)?(0,a.AsyncIterator)(FromSchemaType(e,t.items)):(0,B.IsIterator)(t)?(0,d.Iterator)(FromSchemaType(e,t.items)):(0,B.IsIntersect)(t)?(0,l.Intersect)(FromRest(e,t.allOf)):(0,B.IsUnion)(t)?(0,I.Union)(FromRest(e,t.anyOf)):(0,B.IsTuple)(t)?(0,y.Tuple)(FromRest(e,t.items??[])):(0,B.IsObject)(t)?(0,g.Object)(FromProperties(e,t.properties)):(0,B.IsArray)(t)?(0,i.Array)(FromSchemaType(e,t.items)):(0,B.IsPromise)(t)?(0,m.Promise)(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function Mapped(e,t,r={}){const o=(0,B.IsSchema)(e)?(0,A.IndexPropertyKeys)(e):e;const i=t({[n.Kind]:"MappedKey",keys:o});const a=MappedFunctionReturnType(o,i);return(0,s.CloneType)((0,g.Object)(a),r)}},54025:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29867),t)},29867:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Never=Never;const n=r(97034);function Never(e={}){return{...e,[n.Kind]:"Never",not:{}}}},1078:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(8559),t)},8559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Not=Not;const n=r(38100);const s=r(97034);function Not(e,t){return{...t,[s.Kind]:"Not",not:(0,n.CloneType)(e)}}},50468:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(3007),t)},3007:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Null=Null;const n=r(97034);function Null(e={}){return{...e,[n.Kind]:"Null",type:"null"}}},85544:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14151),t)},14151:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Number=Number;const n=r(97034);function Number(e={}){return{...e,[n.Kind]:"Number",type:"number"}}},62094:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14211),t)},14211:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Object=void 0;const n=r(38100);const s=r(97034);const o=r(96994);function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const i=r.filter((t=>(0,o.IsOptional)(e[t])));const a=r.filter((e=>!i.includes(e)));const c=(0,o.IsSchema)(t.additionalProperties)?{additionalProperties:(0,n.CloneType)(t.additionalProperties)}:{};const u={};for(const t of r)u[t]=(0,n.CloneType)(e[t]);return a.length>0?{...t,...c,[s.Kind]:"Object",type:"object",properties:u,required:a}:{...t,...c,[s.Kind]:"Object",type:"object",properties:u}}t.Object=_Object},88932:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99308),t);s(r(39602),t);s(r(33143),t)},99308:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedKey=OmitFromMappedKey;const n=r(41094);const s=r(33143);function FromPropertyKey(e,t,r){return{[t]:(0,s.Omit)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},39602:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OmitFromMappedResult=OmitFromMappedResult;const n=r(41094);const s=r(33143);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Omit)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},33143:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Omit=Omit;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(99308);const l=r(39602);const d=r(96994);function FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function FromProperty(e,t){const{[t]:r,...n}=e;return n}function FromProperties(e,t){return t.reduce(((e,t)=>FromProperty(e,t)),e)}function OmitResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Omit(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.OmitFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(OmitResolve(e,n),r);return{...s,...o}}},38425:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(63984),t);s(r(15405),t)},63984:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OptionalFromMappedResult=OptionalFromMappedResult;const n=r(41094);const s=r(15405);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Optional)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},15405:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Optional=Optional;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(63984);const a=r(96994);function RemoveOptional(e){return(0,o.Discard)((0,s.CloneType)(e),[n.OptionalKind])}function AddOptional(e){return{...(0,s.CloneType)(e),[n.OptionalKind]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function Optional(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.OptionalFromMappedResult)(e,r):OptionalWithFlag(e,r)}},30449:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(92853),t)},92853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parameters=Parameters;const n=r(7521);const s=r(38100);function Parameters(e,t={}){return(0,n.Tuple)((0,s.CloneRest)(e.parameters),{...t})}},75726:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(16438),t);s(r(34523),t)},16438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PartialFromMappedResult=PartialFromMappedResult;const n=r(41094);const s=r(34523);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Partial)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},34523:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Partial=Partial;const n=r(38425);const s=r(62094);const o=r(62746);const i=r(69100);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(16438);const l=r(96994);function FromRest(e){return e.map((e=>PartialResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,n.Optional)(e[r]);return t}function PartialResolve(e){return(0,l.IsIntersect)(e)?(0,o.Intersect)(FromRest(e.allOf)):(0,l.IsUnion)(e)?(0,i.Union)(FromRest(e.anyOf)):(0,l.IsObject)(e)?(0,s.Object)(FromProperties(e.properties)):(0,s.Object)({})}function Partial(e,t={}){if((0,l.IsMappedResult)(e))return(0,A.PartialFromMappedResult)(e,t);const r=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const n=(0,u.CloneType)(PartialResolve(e),t);return{...r,...n}}},94354:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(74327),t)},74327:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.PatternNeverExact=t.PatternStringExact=t.PatternNumberExact=t.PatternBooleanExact=t.PatternNever=t.PatternString=t.PatternNumber=t.PatternBoolean=void 0;t.PatternBoolean="(true|false)";t.PatternNumber="(0|[1-9][0-9]*)";t.PatternString="(.*)";t.PatternNever="(?!.*)";t.PatternBooleanExact=`^${t.PatternBoolean}$`;t.PatternNumberExact=`^${t.PatternNumber}$`;t.PatternStringExact=`^${t.PatternString}$`;t.PatternNeverExact=`^${t.PatternNever}$`},40640:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(72748),t);s(r(4882),t);s(r(65911),t)},72748:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedKey=PickFromMappedKey;const n=r(41094);const s=r(65911);function FromPropertyKey(e,t,r){return{[t]:(0,s.Pick)(e,[t],r)}}function FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...FromPropertyKey(e,n,r)})),{})}function FromMappedKey(e,t,r){return FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const s=FromMappedKey(e,t,r);return(0,n.MappedResult)(s)}},4882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PickFromMappedResult=PickFromMappedResult;const n=r(41094);const s=r(65911);function FromProperties(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,s.Pick)(e[o],t,r);return n}function FromMappedResult(e,t,r){return FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const s=FromMappedResult(e,t,r);return(0,n.MappedResult)(s)}},65911:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Pick=Pick;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(86918);const a=r(83889);const c=r(97034);const u=r(38100);const A=r(72748);const l=r(4882);const d=r(96994);function FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return(0,d.IsIntersect)(e)?(0,n.Intersect)(FromIntersect(e.allOf,t)):(0,d.IsUnion)(e)?(0,s.Union)(FromUnion(e.anyOf,t)):(0,d.IsObject)(e)?(0,o.Object)(FromProperties(e.properties,t)):(0,o.Object)({})}function Pick(e,t,r={}){if((0,d.IsMappedKey)(t))return(0,A.PickFromMappedKey)(e,t,r);if((0,d.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const n=(0,d.IsSchema)(t)?(0,i.IndexPropertyKeys)(t):t;const s=(0,a.Discard)(e,[c.TransformKind,"$id","required"]);const o=(0,u.CloneType)(PickResolve(e,n),r);return{...s,...o}}},70062:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(35675),t)},35675:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Promise=Promise;const n=r(38100);const s=r(97034);function Promise(e,t={}){return{...t,[s.Kind]:"Promise",type:"Promise",item:(0,n.CloneType)(e)}}},78946:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(84127),t)},84127:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyOptional=ReadonlyOptional;const n=r(40675);const s=r(38425);function ReadonlyOptional(e){return(0,n.Readonly)((0,s.Optional)(e))}},40675:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(94180),t);s(r(90401),t)},94180:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReadonlyFromMappedResult=ReadonlyFromMappedResult;const n=r(41094);const s=r(90401);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Readonly)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},90401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Readonly=Readonly;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(94180);const a=r(96994);function RemoveReadonly(e){return(0,o.Discard)((0,s.CloneType)(e),[n.ReadonlyKind])}function AddReadonly(e){return{...(0,s.CloneType)(e),[n.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function Readonly(e,t){const r=t??true;return(0,a.IsMappedResult)(e)?(0,i.ReadonlyFromMappedResult)(e,r):ReadonlyWithFlag(e,r)}},30420:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(98167),t)},98167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Record=Record;const n=r(62094);const s=r(54025);const o=r(69100);const i=r(26609);const a=r(94354);const c=r(86918);const u=r(97034);const A=r(38100);const l=r(13415);const d=r(96994);function RecordCreateFromPattern(e,t,r){return{...r,[u.Kind]:"Record",type:"object",patternProperties:{[e]:(0,A.CloneType)(t)}}}function RecordCreateFromKeys(e,t,r){const s={};for(const r of e)s[r]=(0,A.CloneType)(t);return(0,n.Object)(s,{...r,[u.Hint]:"Record"})}function FromTemplateLiteralKey(e,t,r){return(0,i.IsTemplateLiteralFinite)(e)?RecordCreateFromKeys((0,c.IndexPropertyKeys)(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=(0,l.IsUndefined)(e.pattern)?a.PatternStringExact:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(a.PatternStringExact,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(a.PatternNeverExact,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(a.PatternNumberExact,t,r)}function Record(e,t,r={}){return(0,d.IsUnion)(e)?FromUnionKey(e.anyOf,t,r):(0,d.IsTemplateLiteral)(e)?FromTemplateLiteralKey(e,t,r):(0,d.IsLiteral)(e)?FromLiteralKey(e.const,t,r):(0,d.IsInteger)(e)?FromIntegerKey(e,t,r):(0,d.IsNumber)(e)?FromNumberKey(e,t,r):(0,d.IsRegExp)(e)?FromRegExpKey(e,t,r):(0,d.IsString)(e)?FromStringKey(e,t,r):(0,d.IsAny)(e)?FromAnyKey(e,t,r):(0,d.IsNever)(e)?FromNeverKey(e,t,r):(0,s.Never)(r)}},33107:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13475),t)},13475:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Recursive=Recursive;const n=r(38100);const s=r(13415);const o=r(97034);let i=0;function Recursive(e,t={}){if((0,s.IsUndefined)(t.$id))t.$id=`T${i++}`;const r=e({[o.Kind]:"This",$ref:`${t.$id}`});r.$id=t.$id;return(0,n.CloneType)({...t,[o.Hint]:"Recursive",...r})}},80470:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(27735),t)},27735:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Ref=Ref;const n=r(97034);const s=r(13415);function Ref(e,t={}){if((0,s.IsString)(e))return{...t,[n.Kind]:"Ref",$ref:e};if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[n.Kind]:"Ref",$ref:e.$id}}},26936:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(99383),t)},99383:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RegExp=RegExp;const n=r(13415);const s=r(97034);function RegExp(e,t={}){const r=(0,n.IsString)(e)?new globalThis.RegExp(e):e;return{...t,[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}},56315:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},51786:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeRegistry=t.FormatRegistry=void 0;t.FormatRegistry=r(56315);t.TypeRegistry=r(1912)},1912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Entries=Entries;t.Clear=Clear;t.Delete=Delete;t.Has=Has;t.Set=Set;t.Get=Get;const r=new Map;function Entries(){return new Map(r)}function Clear(){return r.clear()}function Delete(e){return r.delete(e)}function Has(e){return r.has(e)}function Set(e,t){r.set(e,t)}function Get(e){return r.get(e)}},42744:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24722),t);s(r(78775),t)},24722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.RequiredFromMappedResult=RequiredFromMappedResult;const n=r(41094);const s=r(78775);function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,s.Required)(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=FromMappedResult(e,t);return(0,n.MappedResult)(r)}},78775:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Required=Required;const n=r(62746);const s=r(69100);const o=r(62094);const i=r(97034);const a=r(38100);const c=r(83889);const u=r(24722);const A=r(96994);function FromRest(e){return e.map((e=>RequiredResolve(e)))}function FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,c.Discard)(e[r],[i.OptionalKind]);return t}function RequiredResolve(e){return(0,A.IsIntersect)(e)?(0,n.Intersect)(FromRest(e.allOf)):(0,A.IsUnion)(e)?(0,s.Union)(FromRest(e.anyOf)):(0,A.IsObject)(e)?(0,o.Object)(FromProperties(e.properties)):(0,o.Object)({})}function Required(e,t={}){if((0,A.IsMappedResult)(e)){return(0,u.RequiredFromMappedResult)(e,t)}else{const r=(0,c.Discard)(e,[i.TransformKind,"$id","required"]);const n=(0,a.CloneType)(RequiredResolve(e),t);return{...r,...n}}}},83003:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(48881),t)},48881:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Rest=Rest;const n=r(38100);const s=r(96994);function RestResolve(e){return(0,s.IsIntersect)(e)?(0,n.CloneRest)(e.allOf):(0,s.IsUnion)(e)?(0,n.CloneRest)(e.anyOf):(0,s.IsTuple)(e)?(0,n.CloneRest)(e.items??[]):[]}function Rest(e){return(0,n.CloneRest)(RestResolve(e))}},32970:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(11243),t)},11243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReturnType=ReturnType;const n=r(38100);function ReturnType(e,t={}){return(0,n.CloneType)(e.returns,t)}},13523:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},68954:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13523),t);s(r(53283),t)},53283:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},12760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85944),t)},85944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.SetIncludes=SetIncludes;t.SetIsSubset=SetIsSubset;t.SetDistinct=SetDistinct;t.SetIntersect=SetIntersect;t.SetUnion=SetUnion;t.SetComplement=SetComplement;t.SetIntersectMany=SetIntersectMany;t.SetUnionMany=SetUnionMany;function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}},60343:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(917),t)},917:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true})},23556:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(69295),t)},69295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=Strict;function Strict(e){return JSON.parse(JSON.stringify(e))}},81688:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14695),t)},14695:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.String=String;const n=r(97034);function String(e={}){return{...e,[n.Kind]:"String",type:"string"}}},2129:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(86445),t)},86445:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Symbol=Symbol;const n=r(97034);function Symbol(e){return{...e,[n.Kind]:"Symbol",type:"symbol"}}},97034:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(22311),t)},22311:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=t.Hint=t.OptionalKind=t.ReadonlyKind=t.TransformKind=void 0;t.TransformKind=Symbol.for("TypeBox.Transform");t.ReadonlyKind=Symbol.for("TypeBox.Readonly");t.OptionalKind=Symbol.for("TypeBox.Optional");t.Hint=Symbol.for("TypeBox.Hint");t.Kind=Symbol.for("TypeBox.Kind")},75930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralFiniteError=void 0;t.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;t.IsTemplateLiteralFinite=IsTemplateLiteralFinite;const n=r(75430);const s=r(26113);class TemplateLiteralFiniteError extends s.TypeBoxError{}t.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=(0,n.TemplateLiteralParseExact)(e.pattern);return IsTemplateLiteralExpressionFinite(t)}},85670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralGenerateError=void 0;t.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;t.TemplateLiteralGenerate=TemplateLiteralGenerate;const n=r(75930);const s=r(75430);const o=r(26113);class TemplateLiteralGenerateError extends o.TypeBoxError{}t.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=(0,s.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}},26609:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(75930),t);s(r(85670),t);s(r(98094),t);s(r(75430),t);s(r(85855),t);s(r(27522),t);s(r(4181),t)},75430:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralParserError=void 0;t.TemplateLiteralParse=TemplateLiteralParse;t.TemplateLiteralParseExact=TemplateLiteralParseExact;const n=r(26113);class TemplateLiteralParserError extends n.TypeBoxError{}t.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}},85855:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralPatternError=void 0;t.TemplateLiteralPattern=TemplateLiteralPattern;const n=r(94354);const s=r(97034);const o=r(26113);const i=r(96994);class TemplateLiteralPatternError extends o.TypeBoxError{}t.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(e,t){return(0,i.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,i.IsUnion)(e)?`(${e.anyOf.map((e=>Visit(e,t))).join("|")})`:(0,i.IsNumber)(e)?`${t}${n.PatternNumber}`:(0,i.IsInteger)(e)?`${t}${n.PatternNumber}`:(0,i.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,i.IsString)(e)?`${t}${n.PatternString}`:(0,i.IsLiteral)(e)?`${t}${Escape(e.const.toString())}`:(0,i.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[s.Kind]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>Visit(e,""))).join("")}$`}},98094:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralSyntax=TemplateLiteralSyntax;const n=r(98076);const s=r(64515);const o=r(13278);const i=r(85544);const a=r(81688);const c=r(69100);const u=r(54025);function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield(0,s.Boolean)():t==="number"?yield(0,i.Number)():t==="bigint"?yield(0,o.BigInt)():t==="string"?yield(0,a.String)():yield(()=>{const e=t.split("|").map((e=>(0,n.Literal)(e.trim())));return e.length===0?(0,u.Never)():e.length===1?e[0]:(0,c.UnionEvaluated)(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=(0,n.Literal)("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;t{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteral=TemplateLiteral;const n=r(98094);const s=r(85855);const o=r(13415);const i=r(97034);function TemplateLiteral(e,t={}){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,n.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return{...t,[i.Kind]:"TemplateLiteral",type:"string",pattern:r}}},27522:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TemplateLiteralToUnion=TemplateLiteralToUnion;const n=r(69100);const s=r(98076);const o=r(85670);function TemplateLiteralToUnion(e){const t=(0,o.TemplateLiteralGenerate)(e);const r=t.map((e=>(0,s.Literal)(e)));return(0,n.UnionEvaluated)(r)}},67575:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(79399),t)},79399:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeBuilder=t.TransformDecodeBuilder=void 0;t.Transform=Transform;const n=r(97034);const s=r(38100);const o=r(96994);class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}t.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[n.TransformKind].Encode(e(r));const Decode=e=>this.decode(t[n.TransformKind].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){const t=(0,s.CloneType)(this.schema);return(0,o.IsTransform)(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}t.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(e){return new TransformDecodeBuilder(e)}},7521:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(65667),t)},65667:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Tuple=Tuple;const n=r(38100);const s=r(97034);function Tuple(e,t={}){const[r,o,i]=[false,e.length,e.length];return e.length>0?{...t,[s.Kind]:"Tuple",type:"array",items:(0,n.CloneRest)(e),additionalItems:r,minItems:o,maxItems:i}:{...t,[s.Kind]:"Tuple",type:"array",minItems:o,maxItems:i}}},68237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Type=t.JavaScriptTypeBuilder=t.JsonTypeBuilder=void 0;var n=r(86959);Object.defineProperty(t,"JsonTypeBuilder",{enumerable:true,get:function(){return n.JsonTypeBuilder}});const s=r(17505);const o=r(18158);Object.defineProperty(t,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return o.JavaScriptTypeBuilder}});const i=s;t.Type=i},18158:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JavaScriptTypeBuilder=void 0;const n=r(86959);const s=r(68092);const o=r(85164);const i=r(13278);const a=r(16939);const c=r(58562);const u=r(49305);const A=r(29857);const l=r(26277);const d=r(35907);const p=r(30449);const g=r(70062);const h=r(26936);const m=r(32970);const E=r(2129);const y=r(45760);const I=r(96231);const C=r(81947);class JavaScriptTypeBuilder extends n.JsonTypeBuilder{AsyncIterator(e,t={}){return(0,s.AsyncIterator)(e,t)}Awaited(e,t={}){return(0,o.Awaited)(e,t)}BigInt(e={}){return(0,i.BigInt)(e)}ConstructorParameters(e,t={}){return(0,c.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,u.Date)(e)}Function(e,t,r){return(0,A.Function)(e,t,r)}InstanceType(e,t={}){return(0,l.InstanceType)(e,t)}Iterator(e,t={}){return(0,d.Iterator)(e,t)}Parameters(e,t={}){return(0,p.Parameters)(e,t)}Promise(e,t={}){return(0,g.Promise)(e,t)}RegExp(e,t={}){return(0,h.RegExp)(e,t)}ReturnType(e,t={}){return(0,m.ReturnType)(e,t)}Symbol(e){return(0,E.Symbol)(e)}Undefined(e={}){return(0,I.Undefined)(e)}Uint8Array(e={}){return(0,y.Uint8Array)(e)}Void(e={}){return(0,C.Void)(e)}}t.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.JsonTypeBuilder=void 0;const n=r(36813);const s=r(17186);const o=r(64515);const i=r(80788);const a=r(19236);const c=r(911);const u=r(98056);const A=r(41153);const l=r(94850);const d=r(69682);const p=r(86918);const g=r(4949);const h=r(62746);const m=r(30568);const E=r(73373);const y=r(98076);const I=r(41094);const C=r(54025);const b=r(1078);const B=r(50468);const Q=r(85544);const T=r(62094);const v=r(88932);const w=r(38425);const _=r(75726);const O=r(40640);const k=r(40675);const R=r(78946);const S=r(30420);const F=r(33107);const D=r(80470);const N=r(42744);const P=r(83003);const L=r(23556);const U=r(81688);const M=r(26609);const x=r(67575);const G=r(7521);const j=r(69100);const V=r(51897);const H=r(23339);class JsonTypeBuilder{Strict(e){return(0,L.Strict)(e)}ReadonlyOptional(e){return(0,R.ReadonlyOptional)(e)}Readonly(e,t){return(0,k.Readonly)(e,t??true)}Optional(e,t){return(0,w.Optional)(e,t??true)}Any(e={}){return(0,n.Any)(e)}Array(e,t={}){return(0,s.Array)(e,t)}Boolean(e={}){return(0,o.Boolean)(e)}Capitalize(e,t={}){return(0,m.Capitalize)(e,t)}Composite(e,t){return(0,i.Composite)(e,t)}Const(e,t={}){return(0,a.Const)(e,t)}Deref(e,t){return(0,c.Deref)(e,t)}Enum(e,t={}){return(0,u.Enum)(e,t)}Exclude(e,t,r={}){return(0,A.Exclude)(e,t,r)}Extends(e,t,r,n,s={}){return(0,l.Extends)(e,t,r,n,s)}Extract(e,t,r={}){return(0,d.Extract)(e,t,r)}Index(e,t,r={}){return(0,p.Index)(e,t,r)}Integer(e={}){return(0,g.Integer)(e)}Intersect(e,t={}){return(0,h.Intersect)(e,t)}KeyOf(e,t={}){return(0,E.KeyOf)(e,t)}Literal(e,t={}){return(0,y.Literal)(e,t)}Lowercase(e,t={}){return(0,m.Lowercase)(e,t)}Mapped(e,t,r={}){return(0,I.Mapped)(e,t,r)}Never(e={}){return(0,C.Never)(e)}Not(e,t){return(0,b.Not)(e,t)}Null(e={}){return(0,B.Null)(e)}Number(e={}){return(0,Q.Number)(e)}Object(e,t={}){return(0,T.Object)(e,t)}Omit(e,t,r={}){return(0,v.Omit)(e,t,r)}Partial(e,t={}){return(0,_.Partial)(e,t)}Pick(e,t,r={}){return(0,O.Pick)(e,t,r)}Record(e,t,r={}){return(0,S.Record)(e,t,r)}Recursive(e,t={}){return(0,F.Recursive)(e,t)}Ref(e,t={}){return(0,D.Ref)(e,t)}Required(e,t={}){return(0,N.Required)(e,t)}Rest(e){return(0,P.Rest)(e)}String(e={}){return(0,U.String)(e)}TemplateLiteral(e,t={}){return(0,M.TemplateLiteral)(e,t)}Transform(e){return(0,x.Transform)(e)}Tuple(e,t={}){return(0,G.Tuple)(e,t)}Uncapitalize(e,t={}){return(0,m.Uncapitalize)(e,t)}Union(e,t={}){return(0,j.Union)(e,t)}Unknown(e={}){return(0,V.Unknown)(e)}Unsafe(e={}){return(0,H.Unsafe)(e)}Uppercase(e,t={}){return(0,m.Uppercase)(e,t)}}t.JsonTypeBuilder=JsonTypeBuilder},17505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Strict=t.ReturnType=t.Rest=t.Required=t.RegExp=t.Ref=t.Recursive=t.Record=t.ReadonlyOptional=t.Readonly=t.Promise=t.Pick=t.Partial=t.Parameters=t.Optional=t.Omit=t.Object=t.Number=t.Null=t.Not=t.Never=t.Mapped=t.Literal=t.KeyOf=t.Iterator=t.Uppercase=t.Lowercase=t.Uncapitalize=t.Capitalize=t.Intersect=t.Integer=t.InstanceType=t.Index=t.Function=t.Extract=t.Extends=t.Exclude=t.Enum=t.Deref=t.Date=t.ConstructorParameters=t.Constructor=t.Const=t.Composite=t.Boolean=t.BigInt=t.Awaited=t.AsyncIterator=t.Array=t.Any=void 0;t.Void=t.Unsafe=t.Unknown=t.Union=t.Undefined=t.Uint8Array=t.Tuple=t.Transform=t.TemplateLiteral=t.Symbol=t.String=void 0;var n=r(36813);Object.defineProperty(t,"Any",{enumerable:true,get:function(){return n.Any}});var s=r(17186);Object.defineProperty(t,"Array",{enumerable:true,get:function(){return s.Array}});var o=r(68092);Object.defineProperty(t,"AsyncIterator",{enumerable:true,get:function(){return o.AsyncIterator}});var i=r(85164);Object.defineProperty(t,"Awaited",{enumerable:true,get:function(){return i.Awaited}});var a=r(13278);Object.defineProperty(t,"BigInt",{enumerable:true,get:function(){return a.BigInt}});var c=r(64515);Object.defineProperty(t,"Boolean",{enumerable:true,get:function(){return c.Boolean}});var u=r(80788);Object.defineProperty(t,"Composite",{enumerable:true,get:function(){return u.Composite}});var A=r(19236);Object.defineProperty(t,"Const",{enumerable:true,get:function(){return A.Const}});var l=r(16939);Object.defineProperty(t,"Constructor",{enumerable:true,get:function(){return l.Constructor}});var d=r(58562);Object.defineProperty(t,"ConstructorParameters",{enumerable:true,get:function(){return d.ConstructorParameters}});var p=r(49305);Object.defineProperty(t,"Date",{enumerable:true,get:function(){return p.Date}});var g=r(911);Object.defineProperty(t,"Deref",{enumerable:true,get:function(){return g.Deref}});var h=r(98056);Object.defineProperty(t,"Enum",{enumerable:true,get:function(){return h.Enum}});var m=r(41153);Object.defineProperty(t,"Exclude",{enumerable:true,get:function(){return m.Exclude}});var E=r(94850);Object.defineProperty(t,"Extends",{enumerable:true,get:function(){return E.Extends}});var y=r(69682);Object.defineProperty(t,"Extract",{enumerable:true,get:function(){return y.Extract}});var I=r(29857);Object.defineProperty(t,"Function",{enumerable:true,get:function(){return I.Function}});var C=r(86918);Object.defineProperty(t,"Index",{enumerable:true,get:function(){return C.Index}});var b=r(26277);Object.defineProperty(t,"InstanceType",{enumerable:true,get:function(){return b.InstanceType}});var B=r(4949);Object.defineProperty(t,"Integer",{enumerable:true,get:function(){return B.Integer}});var Q=r(62746);Object.defineProperty(t,"Intersect",{enumerable:true,get:function(){return Q.Intersect}});var T=r(30568);Object.defineProperty(t,"Capitalize",{enumerable:true,get:function(){return T.Capitalize}});Object.defineProperty(t,"Uncapitalize",{enumerable:true,get:function(){return T.Uncapitalize}});Object.defineProperty(t,"Lowercase",{enumerable:true,get:function(){return T.Lowercase}});Object.defineProperty(t,"Uppercase",{enumerable:true,get:function(){return T.Uppercase}});var v=r(35907);Object.defineProperty(t,"Iterator",{enumerable:true,get:function(){return v.Iterator}});var w=r(73373);Object.defineProperty(t,"KeyOf",{enumerable:true,get:function(){return w.KeyOf}});var _=r(98076);Object.defineProperty(t,"Literal",{enumerable:true,get:function(){return _.Literal}});var O=r(41094);Object.defineProperty(t,"Mapped",{enumerable:true,get:function(){return O.Mapped}});var k=r(54025);Object.defineProperty(t,"Never",{enumerable:true,get:function(){return k.Never}});var R=r(1078);Object.defineProperty(t,"Not",{enumerable:true,get:function(){return R.Not}});var S=r(50468);Object.defineProperty(t,"Null",{enumerable:true,get:function(){return S.Null}});var F=r(85544);Object.defineProperty(t,"Number",{enumerable:true,get:function(){return F.Number}});var D=r(62094);Object.defineProperty(t,"Object",{enumerable:true,get:function(){return D.Object}});var N=r(88932);Object.defineProperty(t,"Omit",{enumerable:true,get:function(){return N.Omit}});var P=r(38425);Object.defineProperty(t,"Optional",{enumerable:true,get:function(){return P.Optional}});var L=r(30449);Object.defineProperty(t,"Parameters",{enumerable:true,get:function(){return L.Parameters}});var U=r(75726);Object.defineProperty(t,"Partial",{enumerable:true,get:function(){return U.Partial}});var M=r(40640);Object.defineProperty(t,"Pick",{enumerable:true,get:function(){return M.Pick}});var x=r(70062);Object.defineProperty(t,"Promise",{enumerable:true,get:function(){return x.Promise}});var G=r(40675);Object.defineProperty(t,"Readonly",{enumerable:true,get:function(){return G.Readonly}});var j=r(78946);Object.defineProperty(t,"ReadonlyOptional",{enumerable:true,get:function(){return j.ReadonlyOptional}});var V=r(30420);Object.defineProperty(t,"Record",{enumerable:true,get:function(){return V.Record}});var H=r(33107);Object.defineProperty(t,"Recursive",{enumerable:true,get:function(){return H.Recursive}});var q=r(80470);Object.defineProperty(t,"Ref",{enumerable:true,get:function(){return q.Ref}});var Y=r(26936);Object.defineProperty(t,"RegExp",{enumerable:true,get:function(){return Y.RegExp}});var K=r(42744);Object.defineProperty(t,"Required",{enumerable:true,get:function(){return K.Required}});var J=r(83003);Object.defineProperty(t,"Rest",{enumerable:true,get:function(){return J.Rest}});var $=r(32970);Object.defineProperty(t,"ReturnType",{enumerable:true,get:function(){return $.ReturnType}});var W=r(23556);Object.defineProperty(t,"Strict",{enumerable:true,get:function(){return W.Strict}});var z=r(81688);Object.defineProperty(t,"String",{enumerable:true,get:function(){return z.String}});var Z=r(2129);Object.defineProperty(t,"Symbol",{enumerable:true,get:function(){return Z.Symbol}});var X=r(26609);Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return X.TemplateLiteral}});var ee=r(67575);Object.defineProperty(t,"Transform",{enumerable:true,get:function(){return ee.Transform}});var te=r(7521);Object.defineProperty(t,"Tuple",{enumerable:true,get:function(){return te.Tuple}});var re=r(45760);Object.defineProperty(t,"Uint8Array",{enumerable:true,get:function(){return re.Uint8Array}});var ne=r(96231);Object.defineProperty(t,"Undefined",{enumerable:true,get:function(){return ne.Undefined}});var se=r(69100);Object.defineProperty(t,"Union",{enumerable:true,get:function(){return se.Union}});var oe=r(51897);Object.defineProperty(t,"Unknown",{enumerable:true,get:function(){return oe.Unknown}});var ie=r(23339);Object.defineProperty(t,"Unsafe",{enumerable:true,get:function(){return ie.Unsafe}});var ae=r(81947);Object.defineProperty(t,"Void",{enumerable:true,get:function(){return ae.Void}})},45760:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(2039),t)},2039:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Uint8Array=Uint8Array;const n=r(97034);function Uint8Array(e={}){return{...e,[n.Kind]:"Uint8Array",type:"Uint8Array"}}},96231:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(20479),t)},20479:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Undefined=Undefined;const n=r(97034);function Undefined(e={}){return{...e,[n.Kind]:"Undefined",type:"undefined"}}},69100:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(24083),t);s(r(75396),t);s(r(28519),t)},98252:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionCreate=UnionCreate;const n=r(38100);const s=r(97034);function UnionCreate(e,t){return{...t,[s.Kind]:"Union",anyOf:(0,n.CloneRest)(e)}}},24083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UnionEvaluated=UnionEvaluated;const n=r(97034);const s=r(38100);const o=r(83889);const i=r(54025);const a=r(38425);const c=r(98252);const u=r(96994);function IsUnionOptional(e){return e.some((e=>(0,u.IsOptional)(e)))}function RemoveOptionalFromRest(e){return e.map((e=>(0,u.IsOptional)(e)?RemoveOptionalFromType(e):e))}function RemoveOptionalFromType(e){return(0,o.Discard)(e,[n.OptionalKind])}function ResolveUnion(e,t){return IsUnionOptional(e)?(0,a.Optional)((0,c.UnionCreate)(RemoveOptionalFromRest(e),t)):(0,c.UnionCreate)(RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?(0,i.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):ResolveUnion(e,t)}},75396:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const n=r(97034)},28519:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Union=Union;const n=r(54025);const s=r(38100);const o=r(98252);function Union(e,t={}){return e.length===0?(0,n.Never)(t):e.length===1?(0,s.CloneType)(e[0],t):(0,o.UnionCreate)(e,t)}},51897:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(66303),t)},66303:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unknown=Unknown;const n=r(97034);function Unknown(e={}){return{...e,[n.Kind]:"Unknown"}}},23339:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1361),t)},1361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Unsafe=Unsafe;const n=r(97034);function Unsafe(e={}){return{...e,[n.Kind]:e[n.Kind]??"Unsafe"}}},81947:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(14093),t)},14093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Void=Void;const n=r(97034);function Void(e={}){return{...e,[n.Kind]:"Void",type:"void"}}},85874:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCastError=void 0;t.Cast=Cast;const n=r(17479);const s=r(26113);const o=r(97034);const i=r(18050);const a=r(33742);const c=r(21683);const u=r(40886);class ValueCastError extends s.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCastError=ValueCastError;function ScoreUnion(e,t,r){if(e[o.Kind]==="Object"&&typeof r==="object"&&!(0,n.IsNull)(r)){const n=e;const s=Object.getOwnPropertyNames(r);const i=Object.entries(n.properties);const[c,u]=[1/i.length,i.length];return i.reduce(((e,[n,i])=>{const A=i[o.Kind]==="Literal"&&i.const===r[n]?u:0;const l=(0,a.Check)(i,t,r[n])?c:0;const d=s.includes(n)?c:0;return e+(A+l+d)}),0)}else{return(0,a.Check)(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>(0,u.Deref)(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:(0,c.Clone)(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):(0,i.Create)(e,t)}function Default(e,t,r){return(0,a.Check)(e,t,r)?r:(0,i.Create)(e,t)}function FromArray(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);const s=(0,n.IsArray)(r)?(0,c.Clone)(r):(0,i.Create)(e,t);const o=(0,n.IsNumber)(e.minItems)&&s.lengthnull))]:s;const u=(0,n.IsNumber)(e.maxItems)&&o.length>e.maxItems?o.slice(0,e.maxItems):o;const A=u.map((r=>Visit(e.items,t,r)));if(e.uniqueItems!==true)return A;const l=[...new Set(A)];if(!(0,a.Check)(e,t,l))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return l}function FromConstructor(e,t,r){if((0,a.Check)(e,t,r))return(0,i.Create)(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=Visit(o,t,r.prototype[s])}return result}function FromIntersect(e,t,r){const s=(0,i.Create)(e,t);const o=(0,n.IsStandardObject)(s)&&(0,n.IsStandardObject)(r)?{...s,...r}:r;return(0,a.Check)(e,t,o)?o:(0,i.Create)(e,t)}function FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function FromObject(e,t,r){if((0,a.Check)(e,t,r))return r;if(r===null||typeof r!=="object")return(0,i.Create)(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=Visit(e.additionalProperties,t,r[o])}}return s}function FromRecord(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return(0,i.Create)(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=Visit(s,t,n)}return o}function FromRef(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,u.Deref)(e,t),t,r)}function FromTuple(e,t,r){if((0,a.Check)(e,t,r))return(0,c.Clone)(r);if(!(0,n.IsArray)(r))return(0,i.Create)(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>Visit(e,t,r[n])))}function FromUnion(e,t,r){return(0,a.Check)(e,t,r)?(0,c.Clone)(r):CastUnion(e,t,r)}function Visit(e,t,r){const s=(0,n.IsString)(e.$id)?[...t,e]:t;const i=e;switch(e[o.Kind]){case"Array":return FromArray(i,s,r);case"Constructor":return FromConstructor(i,s,r);case"Intersect":return FromIntersect(i,s,r);case"Never":return FromNever(i,s,r);case"Object":return FromObject(i,s,r);case"Record":return FromRecord(i,s,r);case"Ref":return FromRef(i,s,r);case"This":return FromThis(i,s,r);case"Tuple":return FromTuple(i,s,r);case"Union":return FromUnion(i,s,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(i,s,r)}}function Cast(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},46097:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85874),t)},85410:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueCheckUnknownTypeError=void 0;t.Check=Check;const n=r(82129);const s=r(40886);const o=r(7210);const i=r(97034);const a=r(73373);const c=r(94850);const u=r(51786);const A=r(26113);const l=r(54025);const d=r(17479);const p=r(70384);class ValueCheckUnknownTypeError extends A.TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}t.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(e){return e[i.Kind]==="Any"||e[i.Kind]==="Unknown"}function IsDefined(e){return e!==undefined}function FromAny(e,t,r){return true}function FromArray(e,t,r){if(!(0,d.IsArray)(r))return false;if(IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=(0,o.Hash)(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(IsDefined(e.contains)||(0,d.IsNumber)(e.minContains)||(0,d.IsNumber)(e.maxContains))){return true}const n=IsDefined(e.contains)?e.contains:(0,l.Never)();const s=r.reduce(((e,r)=>Visit(n,t,r)?e+1:e),0);if(s===0){return false}if((0,d.IsNumber)(e.minContains)&&se.maxContains){return false}return true}function FromAsyncIterator(e,t,r){return(0,d.IsAsyncIterator)(r)}function FromBigInt(e,t,r){if(!(0,d.IsBigInt)(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function FromBoolean(e,t,r){return(0,d.IsBoolean)(r)}function FromConstructor(e,t,r){return Visit(e.returns,t,r.prototype)}function FromDate(e,t,r){if(!(0,d.IsDate)(r))return false;if(IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function FromFunction(e,t,r){return(0,d.IsFunction)(r)}function FromInteger(e,t,r){if(!(0,d.IsInteger)(r)){return false}if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromIntersect(e,t,r){const n=e.allOf.every((e=>Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp((0,a.KeyOfPattern)(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if((0,p.IsSchema)(e.unevaluatedProperties)){const s=new RegExp((0,a.KeyOfPattern)(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function FromIterator(e,t,r){return(0,d.IsIterator)(r)}function FromLiteral(e,t,r){return r===e.const}function FromNever(e,t,r){return false}function FromNot(e,t,r){return!Visit(e.not,t,r)}function FromNull(e,t,r){return(0,d.IsNull)(r)}function FromNumber(e,t,r){if(!n.TypeSystemPolicy.IsNumberLike(r))return false;if(IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function FromObject(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return false;if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const s=Object.getOwnPropertyNames(e.properties);for(const o of s){const s=e.properties[o];if(e.required&&e.required.includes(o)){if(!Visit(s,t,r[o])){return false}if(((0,c.ExtendsUndefinedCheck)(s)||IsAnyOrUnknown(s))&&!(o in r)){return false}}else{if(n.TypeSystemPolicy.IsExactOptionalProperty(r,o)&&!Visit(s,t,r[o])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===s.length&&t.length===s.length){return true}else{return t.every((e=>s.includes(e)))}}else if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(r);return n.every((n=>s.includes(n)||Visit(e.additionalProperties,t,r[n])))}else{return true}}function FromPromise(e,t,r){return(0,d.IsPromise)(r)}function FromRecord(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r)){return false}if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);const a=Object.entries(r).every((([e,r])=>i.test(e)?Visit(o,t,r):true));const c=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!i.test(r)?Visit(e.additionalProperties,t,n):true)):true;const u=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>i.test(e))):true;return a&&c&&u}function FromRef(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function FromString(e,t,r){if(!(0,d.IsString)(r)){return false}if(IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(IsDefined(e.format)){if(!u.FormatRegistry.Has(e.format))return false;const t=u.FormatRegistry.Get(e.format);return t(r)}return true}function FromSymbol(e,t,r){return(0,d.IsSymbol)(r)}function FromTemplateLiteral(e,t,r){return(0,d.IsString)(r)&&new RegExp(e.pattern).test(r)}function FromThis(e,t,r){return Visit((0,s.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,d.IsArray)(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;nVisit(e,t,r)))}function FromUint8Array(e,t,r){if(!(0,d.IsUint8Array)(r)){return false}if(IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function FromUnknown(e,t,r){return true}function FromVoid(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}function FromKind(e,t,r){if(!u.TypeRegistry.Has(e[i.Kind]))return false;const n=u.TypeRegistry.Get(e[i.Kind]);return n(e,r)}function Visit(e,t,r){const n=IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[i.Kind]){case"Any":return FromAny(s,n,r);case"Array":return FromArray(s,n,r);case"AsyncIterator":return FromAsyncIterator(s,n,r);case"BigInt":return FromBigInt(s,n,r);case"Boolean":return FromBoolean(s,n,r);case"Constructor":return FromConstructor(s,n,r);case"Date":return FromDate(s,n,r);case"Function":return FromFunction(s,n,r);case"Integer":return FromInteger(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Iterator":return FromIterator(s,n,r);case"Literal":return FromLiteral(s,n,r);case"Never":return FromNever(s,n,r);case"Not":return FromNot(s,n,r);case"Null":return FromNull(s,n,r);case"Number":return FromNumber(s,n,r);case"Object":return FromObject(s,n,r);case"Promise":return FromPromise(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"RegExp":return FromRegExp(s,n,r);case"String":return FromString(s,n,r);case"Symbol":return FromSymbol(s,n,r);case"TemplateLiteral":return FromTemplateLiteral(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Undefined":return FromUndefined(s,n,r);case"Union":return FromUnion(s,n,r);case"Uint8Array":return FromUint8Array(s,n,r);case"Unknown":return FromUnknown(s,n,r);case"Void":return FromVoid(s,n,r);default:if(!u.TypeRegistry.Has(s[i.Kind]))throw new ValueCheckUnknownTypeError(s);return FromKind(s,n,r)}}function Check(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},33742:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85410),t)},40338:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clean=Clean;const n=r(73373);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(97034);const c=r(17479);const u=r(70384);function IsCheckable(e){return(0,u.IsSchema)(e)&&e[a.Kind]!=="Unsafe"}function FromArray(e,t,r){if(!(0,c.IsArray)(r))return r;return r.map((r=>Visit(e.items,t,r)))}function FromIntersect(e,t,r){const i=e.unevaluatedProperties;const a=e.allOf.map((e=>Visit(e,t,(0,o.Clone)(r))));const A=a.reduce(((e,t)=>(0,c.IsObject)(t)?{...e,...t}:t),{});if(!(0,c.IsObject)(r)||!(0,c.IsObject)(A)||!(0,u.IsSchema)(i))return A;const l=(0,n.KeyOfPropertyKeys)(e);for(const e of Object.getOwnPropertyNames(r)){if(l.includes(e))continue;if((0,s.Check)(i,t,r[e])){A[e]=Visit(i,t,r[e])}}return A}function FromObject(e,t,r){if(!(0,c.IsObject)(r)||(0,c.IsArray)(r))return r;const n=e.additionalProperties;for(const o of Object.getOwnPropertyNames(r)){if(o in e.properties){r[o]=Visit(e.properties[o],t,r[o]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[o])){r[o]=Visit(n,t,r[o]);continue}delete r[o]}return r}function FromRecord(e,t,r){if(!(0,c.IsObject)(r))return r;const n=e.additionalProperties;const o=Object.getOwnPropertyNames(r);const[i,a]=Object.entries(e.patternProperties)[0];const A=new RegExp(i);for(const e of o){if(A.test(e)){r[e]=Visit(a,t,r[e]);continue}if((0,u.IsSchema)(n)&&(0,s.Check)(n,t,r[e])){r[e]=Visit(n,t,r[e]);continue}delete r[e]}return r}function FromRef(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromThis(e,t,r){return Visit((0,i.Deref)(e,t),t,r)}function FromTuple(e,t,r){if(!(0,c.IsArray)(r))return r;if((0,c.IsUndefined)(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&(0,s.Check)(n,t,r)){return Visit(n,t,r)}}return r}function Visit(e,t,r){const n=(0,c.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[a.Kind]){case"Array":return FromArray(s,n,r);case"Intersect":return FromIntersect(s,n,r);case"Object":return FromObject(s,n,r);case"Record":return FromRecord(s,n,r);case"Ref":return FromRef(s,n,r);case"This":return FromThis(s,n,r);case"Tuple":return FromTuple(s,n,r);case"Union":return FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?Visit(e[0],e[1],e[2]):Visit(e[0],[],e[1])}},6115:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(40338),t)},13366:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Clone=Clone;const n=r(17479);function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Clone(e[r])}return t}function ArrayType(e){return e.map((e=>Clone(e)))}function TypedArrayType(e){return e.slice()}function DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function Clone(e){if((0,n.IsArray)(e))return ArrayType(e);if((0,n.IsDate)(e))return DateType(e);if((0,n.IsStandardObject)(e))return ObjectType(e);if((0,n.IsTypedArray)(e))return TypedArrayType(e);if((0,n.IsValueType)(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}},21683:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(13366),t)},68594:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Convert=Convert;const n=r(21683);const s=r(33742);const o=r(40886);const i=r(97034);const a=r(17479);function IsStringNumeric(e){return(0,a.IsString)(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return(0,a.IsBigInt)(e)||(0,a.IsBoolean)(e)||(0,a.IsNumber)(e)}function IsValueTrue(e){return e===true||(0,a.IsNumber)(e)&&e===1||(0,a.IsBigInt)(e)&&e===BigInt("1")||(0,a.IsString)(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||(0,a.IsNumber)(e)&&(e===0||Object.is(e,-0))||(0,a.IsBigInt)(e)&&e===BigInt("0")||(0,a.IsString)(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return(0,a.IsString)(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return(0,a.IsString)(e.const)?TryConvertLiteralString(t,e.const):(0,a.IsNumber)(e.const)?TryConvertLiteralNumber(t,e.const):(0,a.IsBoolean)(e.const)?TryConvertLiteralBoolean(t,e.const):(0,n.Clone)(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):(0,a.IsNumber)(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():(0,a.IsSymbol)(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):(0,a.IsNumber)(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return(0,a.IsString)(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return(0,a.IsString)(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return(0,a.IsDate)(e)?e:(0,a.IsNumber)(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function Default(e){return e}function FromArray(e,t,r){const n=(0,a.IsArray)(r)?r:[r];return n.map((r=>Visit(e.items,t,r)))}function FromBigInt(e,t,r){return TryConvertBigInt(r)}function FromBoolean(e,t,r){return TryConvertBoolean(r)}function FromDate(e,t,r){return TryConvertDate(r)}function FromInteger(e,t,r){return TryConvertInteger(r)}function FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>Visit(r,t,e)),r)}function FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function FromNull(e,t,r){return TryConvertNull(r)}function FromNumber(e,t,r){return TryConvertNumber(r)}function FromObject(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=(0,a.HasPropertyKey)(e.properties,n)?Visit(e.properties[n],t,r[n]):r[n]}return s}function FromRecord(e,t,r){const n=(0,a.IsObject)(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=Visit(o,t,n)}return i}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromString(e,t,r){return TryConvertString(r)}function FromSymbol(e,t,r){return(0,a.IsString)(r)||(0,a.IsNumber)(r)?Symbol(r):r}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=(0,a.IsArray)(r)&&!(0,a.IsUndefined)(e.items);if(!n)return r;return r.map(((r,n)=>n{Object.defineProperty(t,"__esModule",{value:true});t.ValueCreateError=void 0;t.Create=Create;const n=r(17479);const s=r(33742);const o=r(21683);const i=r(40886);const a=r(26609);const c=r(94354);const u=r(51786);const A=r(97034);const l=r(26113);class ValueCreateError extends l.TypeBoxError{constructor(e,t){super(t);this.schema=e}}t.ValueCreateError=ValueCreateError;function FromDefault(e){return typeof e==="function"?e:(0,o.Clone)(e)}function FromAny(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromArray(e,t){if(e.uniqueItems===true&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>Visit(e.items,t)))}else{return[]}}function FromAsyncIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function FromBigInt(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function FromBoolean(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return false}}function FromConstructor(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function FromDate(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function FromFunction(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return()=>Visit(e.returns,t)}}function FromInteger(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromIntersect(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!(0,s.Check)(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function FromIterator(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function FromLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return e.const}}function FromNever(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function FromNot(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function FromNull(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return null}}function FromNumber(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function FromObject(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=Visit(o,t)}return n}}function FromPromise(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(Visit(e.item,t))}}function FromRecord(e,t){const[r,s]=Object.entries(e.patternProperties)[0];if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(!(r===c.PatternStringExact||r===c.PatternNumberExact)){const e=r.slice(1,r.length-1).split("|");const n={};for(const r of e)n[r]=Visit(s,t);return n}else{return{}}}function FromRef(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromRegExp(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function FromString(e,t){if(e.pattern!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!(0,n.HasPropertyKey)(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function FromTemplateLiteral(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(!(0,a.IsTemplateLiteralFinite)(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=(0,a.TemplateLiteralGenerate)(e);return r[0]}function FromThis(e,t){if(p++>d)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return Visit((0,i.Deref)(e,t),t)}}function FromTuple(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>Visit(e.items[n],t)))}}function FromUndefined(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return undefined}}function FromUnion(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(e.anyOf[0],t)}}function FromUint8Array(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return{}}}function FromVoid(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{return void 0}}function FromKind(e,t){if((0,n.HasPropertyKey)(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(e,t){const r=(0,n.IsString)(e.$id)?[...t,e]:t;const s=e;switch(s[A.Kind]){case"Any":return FromAny(s,r);case"Array":return FromArray(s,r);case"AsyncIterator":return FromAsyncIterator(s,r);case"BigInt":return FromBigInt(s,r);case"Boolean":return FromBoolean(s,r);case"Constructor":return FromConstructor(s,r);case"Date":return FromDate(s,r);case"Function":return FromFunction(s,r);case"Integer":return FromInteger(s,r);case"Intersect":return FromIntersect(s,r);case"Iterator":return FromIterator(s,r);case"Literal":return FromLiteral(s,r);case"Never":return FromNever(s,r);case"Not":return FromNot(s,r);case"Null":return FromNull(s,r);case"Number":return FromNumber(s,r);case"Object":return FromObject(s,r);case"Promise":return FromPromise(s,r);case"Record":return FromRecord(s,r);case"Ref":return FromRef(s,r);case"RegExp":return FromRegExp(s,r);case"String":return FromString(s,r);case"Symbol":return FromSymbol(s,r);case"TemplateLiteral":return FromTemplateLiteral(s,r);case"This":return FromThis(s,r);case"Tuple":return FromTuple(s,r);case"Undefined":return FromUndefined(s,r);case"Union":return FromUnion(s,r);case"Uint8Array":return FromUint8Array(s,r);case"Unknown":return FromUnknown(s,r);case"Void":return FromVoid(s,r);default:if(!u.TypeRegistry.Has(s[A.Kind]))throw new ValueCreateError(s,"Unknown type");return FromKind(s,r)}}const d=512;let p=0;function Create(...e){p=0;return e.length===2?Visit(e[0],e[1]):Visit(e[0],[])}},18050:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(51744),t)},28766:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Default=Default;const n=r(33742);const s=r(21683);const o=r(40886);const i=r(97034);const a=r(17479);const c=r(70384);function ValueOrDefault(e,t){return t===undefined&&"default"in e?(0,s.Clone)(e.default):t}function IsCheckable(e){return(0,c.IsSchema)(e)&&e[i.Kind]!=="Unsafe"}function IsDefaultSchema(e){return(0,c.IsSchema)(e)&&"default"in e}function FromArray(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n))return n;for(let r=0;r{const s=Visit(r,t,n);return(0,a.IsObject)(s)?{...e,...s}:s}),{})}function FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsObject)(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const c=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(c.test(e)&&IsDefaultSchema(i)))continue;n[e]=Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(c.test(e))continue;n[e]=Visit(s,t,n[e])}return n}function FromRef(e,t,r){return Visit((0,o.Deref)(e,t),t,ValueOrDefault(e,r))}function FromThis(e,t,r){return Visit((0,o.Deref)(e,t),t,r)}function FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!(0,a.IsArray)(n)||(0,a.IsUndefined)(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:true});t.ValueDeltaSymbolError=t.ValueDeltaError=t.Edit=t.Delete=t.Update=t.Insert=void 0;t.Diff=Diff;t.Patch=Patch;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);const a=r(98076);const c=r(62094);const u=r(81688);const A=r(51897);const l=r(69100);t.Insert=(0,c.Object)({type:(0,a.Literal)("insert"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Update=(0,c.Object)({type:(0,a.Literal)("update"),path:(0,u.String)(),value:(0,A.Unknown)()});t.Delete=(0,c.Object)({type:(0,a.Literal)("delete"),path:(0,u.String)()});t.Edit=(0,l.Union)([t.Insert,t.Update,t.Delete]);class ValueDeltaError extends i.TypeBoxError{constructor(e,t){super(t);this.value=e}}t.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(e){super(e,"Cannot diff objects with symbol keys");this.value=e}}t.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(e,t){return{type:"update",path:e,value:t}}function CreateInsert(e,t){return{type:"insert",path:e,value:t}}function CreateDelete(e){return{type:"delete",path:e}}function*ObjectType(e,t,r){if(!(0,n.IsStandardObject)(r))return yield CreateUpdate(e,r);const s=[...globalThis.Object.keys(t),...globalThis.Object.getOwnPropertySymbols(t)];const o=[...globalThis.Object.keys(r),...globalThis.Object.getOwnPropertySymbols(r)];for(const t of s){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&o.includes(t))yield CreateUpdate(`${e}/${globalThis.String(t)}`,undefined)}for(const s of o){if((0,n.IsUndefined)(t[s])||(0,n.IsUndefined)(r[s]))continue;if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);yield*Visit(`${e}/${globalThis.String(s)}`,t[s],r[s])}for(const s of o){if((0,n.IsSymbol)(s))throw new ValueDeltaSymbolError(s);if((0,n.IsUndefined)(t[s]))yield CreateInsert(`${e}/${globalThis.String(s)}`,r[s])}for(const t of s.reverse()){if((0,n.IsSymbol)(t))throw new ValueDeltaSymbolError(t);if((0,n.IsUndefined)(r[t])&&!o.includes(t))yield CreateDelete(`${e}/${globalThis.String(t)}`)}}function*ArrayType(e,t,r){if(!(0,n.IsArray)(r))return yield CreateUpdate(e,r);for(let n=0;n=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return(0,o.Clone)(t[0].value)}if(IsIdentity(t)){return(0,o.Clone)(e)}const r=(0,o.Clone)(e);for(const e of t){switch(e.type){case"insert":{s.ValuePointer.Set(r,e.path,e.value);break}case"update":{s.ValuePointer.Set(r,e.path,e.value);break}case"delete":{s.ValuePointer.Delete(r,e.path);break}}}return r}},8124:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(67126),t)},85298:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeDereferenceError=void 0;t.Deref=Deref;const n=r(26113);const s=r(97034);class TypeDereferenceError extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}t.TypeDereferenceError=TypeDereferenceError;function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return Deref(r,t)}function Deref(e,t){return e[s.Kind]==="This"||e[s.Kind]==="Ref"?Resolve(e,t):e}},40886:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(85298),t)},60586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Equal=Equal;const n=r(17479);function ObjectType(e,t){if(!(0,n.IsStandardObject)(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const s=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==s.length)return false;return r.every((r=>Equal(e[r],t[r])))}function DateType(e,t){return(0,n.IsDate)(t)&&e.getTime()===t.getTime()}function ArrayType(e,t){if(!(0,n.IsArray)(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function TypedArrayType(e,t){if(!(0,n.IsTypedArray)(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function ValueType(e,t){return e===t}function Equal(e,t){if((0,n.IsStandardObject)(e))return ObjectType(e,t);if((0,n.IsDate)(e))return DateType(e,t);if((0,n.IsTypedArray)(e))return TypedArrayType(e,t);if((0,n.IsArray)(e))return ArrayType(e,t);if((0,n.IsValueType)(e))return ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}},46186:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(60586),t)},1850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.IsAsyncIterator=IsAsyncIterator;t.IsIterator=IsIterator;t.IsStandardObject=IsStandardObject;t.IsInstanceObject=IsInstanceObject;t.IsPromise=IsPromise;t.IsDate=IsDate;t.IsMap=IsMap;t.IsSet=IsSet;t.IsRegExp=IsRegExp;t.IsTypedArray=IsTypedArray;t.IsInt8Array=IsInt8Array;t.IsUint8Array=IsUint8Array;t.IsUint8ClampedArray=IsUint8ClampedArray;t.IsInt16Array=IsInt16Array;t.IsUint16Array=IsUint16Array;t.IsInt32Array=IsInt32Array;t.IsUint32Array=IsUint32Array;t.IsFloat32Array=IsFloat32Array;t.IsFloat64Array=IsFloat64Array;t.IsBigInt64Array=IsBigInt64Array;t.IsBigUint64Array=IsBigUint64Array;t.HasPropertyKey=HasPropertyKey;t.IsObject=IsObject;t.IsArray=IsArray;t.IsUndefined=IsUndefined;t.IsNull=IsNull;t.IsBoolean=IsBoolean;t.IsNumber=IsNumber;t.IsInteger=IsInteger;t.IsBigInt=IsBigInt;t.IsString=IsString;t.IsFunction=IsFunction;t.IsSymbol=IsSymbol;t.IsValueType=IsValueType;function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}},17479:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(1850),t)},83760:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueHashError=void 0;t.Hash=Hash;const n=r(17479);const s=r(26113);class ValueHashError extends s.TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}t.ValueHashError=ValueHashError;var o;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(o||(o={}));let i=BigInt("14695981039346656037");const[a,c]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const u=Array.from({length:256}).map(((e,t)=>BigInt(t)));const A=new Float64Array(1);const l=new DataView(A.buffer);const d=new Uint8Array(A.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function ArrayType(e){FNV1A64(o.Array);for(const t of e){Visit(t)}}function BooleanType(e){FNV1A64(o.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(o.BigInt);l.setBigInt64(0,e);for(const e of d){FNV1A64(e)}}function DateType(e){FNV1A64(o.Date);Visit(e.getTime())}function NullType(e){FNV1A64(o.Null)}function NumberType(e){FNV1A64(o.Number);l.setFloat64(0,e);for(const e of d){FNV1A64(e)}}function ObjectType(e){FNV1A64(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){Visit(t);Visit(e[t])}}function StringType(e){FNV1A64(o.String);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.ValueMutateError=void 0;t.Mutate=Mutate;const n=r(17479);const s=r(23079);const o=r(21683);const i=r(26113);class ValueMutateError extends i.TypeBoxError{constructor(e){super(e)}}t.ValueMutateError=ValueMutateError;function ObjectType(e,t,r,i){if(!(0,n.IsStandardObject)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{const n=Object.getOwnPropertyNames(r);const s=Object.getOwnPropertyNames(i);for(const e of n){if(!s.includes(e)){delete r[e]}}for(const e of s){if(!n.includes(e)){r[e]=null}}for(const n of s){Visit(e,`${t}/${n}`,r[n],i[n])}}}function ArrayType(e,t,r,i){if(!(0,n.IsArray)(r)){s.ValuePointer.Set(e,t,(0,o.Clone)(i))}else{for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointer=void 0;t.ValuePointer=r(65630)},65630:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuePointerRootDeleteError=t.ValuePointerRootSetError=void 0;t.Format=Format;t.Set=Set;t.Delete=Delete;t.Has=Has;t.Get=Get;const n=r(26113);class ValuePointerRootSetError extends n.TypeBoxError{constructor(e,t,r){super("Cannot set root value");this.value=e;this.path=t;this.update=r}}t.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends n.TypeBoxError{constructor(e,t){super("Cannot delete root value");this.value=e;this.path=t}}t.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.TransformDecodeError=t.TransformDecodeCheckError=void 0;t.TransformDecode=TransformDecode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformDecodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`Unable to decode value as it does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends s.TypeBoxError{constructor(e,t,r,n){super(n instanceof Error?n.message:"Unknown error");this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformDecodeError=TransformDecodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Decode(r):r}catch(n){throw new TransformDecodeError(e,t,r,n)}}function FromArray(e,t,r,n){return(0,c.IsArray)(n)?Default(e,r,n.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n)))):Default(e,r,n)}function FromIntersect(e,t,r,n){if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyEntries)(e);const i=s.map((e=>e[0]));const a={...n};for(const[e,n]of s)if(e in a){a[e]=Visit(n,t,`${r}/${e}`,a[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.unevaluatedProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return Default(e,r,d)}function FromNot(e,t,r,n){return Default(e,r,Visit(e.not,t,r,n))}function FromObject(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=(0,o.KeyOfPropertyKeys)(e);const i={...n};for(const n of s)if(n in i){i[n]=Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!s.includes(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRecord(e,t,r,n){if(!(0,c.IsStandardObject)(n))return Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const A=e.additionalProperties;const l={...i};for(const e of a)if(!o.test(e)){l[e]=Default(A,`${r}/${e}`,l[e])}return Default(e,r,l)}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);return Default(e,r,Visit(s,t,r,n))}function FromTuple(e,t,r,n){return(0,c.IsArray)(n)&&(0,c.IsArray)(e.items)?Default(e,r,e.items.map(((e,s)=>Visit(e,t,`${r}/${s}`,n[s])))):Default(e,r,n)}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"Symbol":return Default(i,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformDecode(e,t,r){return Visit(e,t,"",r)}},33598:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TransformEncodeError=t.TransformEncodeCheckError=void 0;t.TransformEncode=TransformEncode;const n=r(97034);const s=r(26113);const o=r(73373);const i=r(40886);const a=r(33742);const c=r(17479);const u=r(70384);class TransformEncodeCheckError extends s.TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}t.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends s.TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}t.TransformEncodeError=TransformEncodeError;function Default(e,t,r){try{return(0,u.IsTransform)(e)?e[n.TransformKind].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function FromArray(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(s)?s.map(((n,s)=>Visit(e.items,t,`${r}/${s}`,n))):s}function FromIntersect(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n)||(0,c.IsValueType)(n))return s;const i=(0,o.KeyOfPropertyEntries)(e);const a=i.map((e=>e[0]));const A={...s};for(const[e,n]of i)if(e in A){A[e]=Visit(n,t,`${r}/${e}`,A[e])}if(!(0,u.IsTransform)(e.unevaluatedProperties)){return Default(e,r,A)}const l=Object.getOwnPropertyNames(A);const d=e.unevaluatedProperties;const p={...A};for(const e of l)if(!a.includes(e)){p[e]=Default(d,`${r}/${e}`,p[e])}return p}function FromNot(e,t,r,n){return Default(e.not,r,Default(e,r,n))}function FromObject(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(s))return s;const i=(0,o.KeyOfPropertyKeys)(e);const a={...s};for(const n of i)if(n in a){a[n]=Visit(e.properties[n],t,`${r}/${n}`,a[n])}if(!(0,u.IsSchema)(e.additionalProperties)){return a}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.includes(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRecord(e,t,r,n){const s=Default(e,r,n);if(!(0,c.IsStandardObject)(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!(0,u.IsSchema)(e.additionalProperties)){return Default(e,r,a)}const A=Object.getOwnPropertyNames(a);const l=e.additionalProperties;const d={...a};for(const e of A)if(!i.test(e)){d[e]=Default(l,`${r}/${e}`,d[e])}return d}function FromRef(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromThis(e,t,r,n){const s=(0,i.Deref)(e,t);const o=Visit(s,t,r,n);return Default(e,r,o)}function FromTuple(e,t,r,n){const s=Default(e,r,n);return(0,c.IsArray)(e.items)?e.items.map(((e,n)=>Visit(e,t,`${r}/${n}`,s[n]))):[]}function FromUnion(e,t,r,n){for(const s of e.anyOf){if(!(0,a.Check)(s,t,n))continue;const o=Visit(s,t,r,n);return Default(e,r,o)}for(const s of e.anyOf){const o=Visit(s,t,r,n);if(!(0,a.Check)(e,t,o))continue;return Default(e,r,o)}return Default(e,r,n)}function Visit(e,t,r,s){const o=typeof e.$id==="string"?[...t,e]:t;const i=e;switch(e[n.Kind]){case"Array":return FromArray(i,o,r,s);case"Intersect":return FromIntersect(i,o,r,s);case"Not":return FromNot(i,o,r,s);case"Object":return FromObject(i,o,r,s);case"Record":return FromRecord(i,o,r,s);case"Ref":return FromRef(i,o,r,s);case"This":return FromThis(i,o,r,s);case"Tuple":return FromTuple(i,o,r,s);case"Union":return FromUnion(i,o,r,s);default:return Default(i,r,s)}}function TransformEncode(e,t,r){return Visit(e,t,"",r)}},51542:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.HasTransform=HasTransform;const n=r(40886);const s=r(97034);const o=r(70384);const i=r(17479);function FromArray(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromAsyncIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromConstructor(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromFunction(e,t){return(0,o.IsTransform)(e)||Visit(e.returns,t)||e.parameters.some((e=>Visit(e,t)))}function FromIntersect(e,t){return(0,o.IsTransform)(e)||(0,o.IsTransform)(e.unevaluatedProperties)||e.allOf.some((e=>Visit(e,t)))}function FromIterator(e,t){return(0,o.IsTransform)(e)||Visit(e.items,t)}function FromNot(e,t){return(0,o.IsTransform)(e)||Visit(e.not,t)}function FromObject(e,t){return(0,o.IsTransform)(e)||Object.values(e.properties).some((e=>Visit(e,t)))||(0,o.IsSchema)(e.additionalProperties)&&Visit(e.additionalProperties,t)}function FromPromise(e,t){return(0,o.IsTransform)(e)||Visit(e.item,t)}function FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return(0,o.IsTransform)(e)||Visit(n,t)||(0,o.IsSchema)(e.additionalProperties)&&(0,o.IsTransform)(e.additionalProperties)}function FromRef(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromThis(e,t){if((0,o.IsTransform)(e))return true;return Visit((0,n.Deref)(e,t),t)}function FromTuple(e,t){return(0,o.IsTransform)(e)||!(0,i.IsUndefined)(e.items)&&e.items.some((e=>Visit(e,t)))}function FromUnion(e,t){return(0,o.IsTransform)(e)||e.anyOf.some((e=>Visit(e,t)))}function Visit(e,t){const r=(0,i.IsString)(e.$id)?[...t,e]:t;const n=e;if(e.$id&&a.has(e.$id))return false;if(e.$id)a.add(e.$id);switch(e[s.Kind]){case"Array":return FromArray(n,r);case"AsyncIterator":return FromAsyncIterator(n,r);case"Constructor":return FromConstructor(n,r);case"Function":return FromFunction(n,r);case"Intersect":return FromIntersect(n,r);case"Iterator":return FromIterator(n,r);case"Not":return FromNot(n,r);case"Object":return FromObject(n,r);case"Promise":return FromPromise(n,r);case"Record":return FromRecord(n,r);case"Ref":return FromRef(n,r);case"This":return FromThis(n,r);case"Tuple":return FromTuple(n,r);case"Union":return FromUnion(n,r);default:return(0,o.IsTransform)(e)}}const a=new Set;function HasTransform(e,t){a.clear();return Visit(e,t)}},50038:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(37354),t);s(r(33598),t);s(r(51542),t)},22079:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Value=void 0;t.Value=r(50854)},50854:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Cast=Cast;t.Create=Create;t.Check=Check;t.Clean=Clean;t.Convert=Convert;t.Clone=Clone;t.Decode=Decode;t.Default=Default;t.Encode=Encode;t.Errors=Errors;t.Equal=Equal;t.Diff=Diff;t.Hash=Hash;t.Patch=Patch;t.Mutate=Mutate;const n=r(50038);const s=r(36068);const o=r(7210);const i=r(46186);const a=r(46097);const c=r(21683);const u=r(41241);const A=r(18050);const l=r(6115);const d=r(33742);const p=r(97659);const g=r(8124);const h=r(65507);function Cast(...e){return a.Cast.apply(a.Cast,e)}function Create(...e){return A.Create.apply(A.Create,e)}function Check(...e){return d.Check.apply(d.Check,e)}function Clean(...e){return l.Clean.apply(l.Clean,e)}function Convert(...e){return u.Convert.apply(u.Convert,e)}function Clone(e){return(0,c.Clone)(e)}function Decode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Check(t,r,s))throw new n.TransformDecodeCheckError(t,s,Errors(t,r,s).First());return(0,n.HasTransform)(t,r)?(0,n.TransformDecode)(t,r,s):s}function Default(...e){return p.Default.apply(p.Default,e)}function Encode(...e){const[t,r,s]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const o=(0,n.HasTransform)(t,r)?(0,n.TransformEncode)(t,r,s):s;if(!Check(t,r,o))throw new n.TransformEncodeCheckError(t,o,Errors(t,r,o).First());return o}function Errors(...e){return h.Errors.apply(h.Errors,e)}function Equal(e,t){return(0,i.Equal)(e,t)}function Diff(e,t){return(0,g.Diff)(e,t)}function Hash(e){return(0,o.Hash)(e)}function Patch(e,t){return(0,g.Patch)(e,t)}function Mutate(e,t){(0,s.Mutate)(e,t)}},63251:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(e){return e&&e["default"]||e}var load=function(e,t,r={}){var n,s,o;for(n in t){o=t[n];r[n]=(s=e[n])!=null?s:o}return r};var overwrite=function(e,t,r={}){var n,s;for(n in e){s=e[n];if(t[n]!==void 0){r[n]=s}}return r};var t={load:load,overwrite:overwrite};var r;r=class DLList{constructor(e,t){this.incr=e;this.decr=t;this._first=null;this._last=null;this.length=0}push(e){var t;this.length++;if(typeof this.incr==="function"){this.incr()}t={value:e,prev:this._last,next:null};if(this._last!=null){this._last.next=t;this._last=t}else{this._first=this._last=t}return void 0}shift(){var e;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}e=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return e}first(){if(this._first!=null){return this._first.value}}getArray(){var e,t,r;e=this._first;r=[];while(e!=null){r.push((t=e,e=e.next,t.value))}return r}forEachShift(e){var t;t=this.shift();while(t!=null){e(t),t=this.shift()}return void 0}debug(){var e,t,r,n,s;e=this._first;s=[];while(e!=null){s.push((t=e,e=e.next,{value:t.value,prev:(r=t.prev)!=null?r.value:void 0,next:(n=t.next)!=null?n.value:void 0}))}return s}};var n=r;var s;s=class Events{constructor(e){this.instance=e;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(e,t)=>this._addListener(e,"many",t);this.instance.once=(e,t)=>this._addListener(e,"once",t);this.instance.removeAllListeners=(e=null)=>{if(e!=null){return delete this._events[e]}else{return this._events={}}}}_addListener(e,t,r){var n;if((n=this._events)[e]==null){n[e]=[]}this._events[e].push({cb:r,status:t});return this.instance}listenerCount(e){if(this._events[e]!=null){return this._events[e].length}else{return 0}}async trigger(e,...t){var r,n;try{if(e!=="debug"){this.trigger("debug",`Event triggered: ${e}`,t)}if(this._events[e]==null){return}this._events[e]=this._events[e].filter((function(e){return e.status!=="none"}));n=this._events[e].map((async e=>{var r,n;if(e.status==="none"){return}if(e.status==="once"){e.status="none"}try{n=typeof e.cb==="function"?e.cb(...t):void 0;if(typeof(n!=null?n.then:void 0)==="function"){return await n}else{return n}}catch(e){r=e;{this.trigger("error",r)}return null}}));return(await Promise.all(n)).find((function(e){return e!=null}))}catch(e){r=e;{this.trigger("error",r)}return null}}};var o=s;var i,a,c;i=n;a=o;c=class Queues{constructor(e){var t;this.Events=new a(this);this._length=0;this._lists=function(){var r,n,s;s=[];for(t=r=1,n=e;1<=n?r<=n:r>=n;t=1<=n?++r:--r){s.push(new i((()=>this.incr()),(()=>this.decr())))}return s}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(e){return this._lists[e.options.priority].push(e)}queued(e){if(e!=null){return this._lists[e].length}else{return this._length}}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(e=this._lists){var t,r,n;for(t=0,r=e.length;t0){return n}}return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var u=c;var A;A=class BottleneckError extends Error{};var l=A;var d,p,g,h,m;h=10;p=5;m=t;d=l;g=class Job{constructor(e,t,r,n,s,o,i,a){this.task=e;this.args=t;this.rejectOnDrop=s;this.Events=o;this._states=i;this.Promise=a;this.options=m.load(r,n);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===n.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((e,t)=>{this._resolve=e;this._reject=t}));this.retryCount=0}_sanitizePriority(e){var t;t=~~e!==e?p:e;if(t<0){return 0}else if(t>h-1){return h-1}else{return t}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(e!=null?e:new d(t))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(e){var t;t=this._states.jobStatus(this.options.id);if(!(t===e||e==="DONE"&&t===null)){throw new d(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var s,o,i;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}o={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",o);try{i=await(e!=null?e.schedule(this.options,this.task,...this.args):this.task(...this.args));if(t()){this.doDone(o);await n(this.options,o);this._assertStatus("DONE");return this._resolve(i)}}catch(e){s=e;return this._onFailure(s,o,t,r,n)}}doExpire(e,t,r){var n,s;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");s={args:this.args,options:this.options,retryCount:this.retryCount};n=new d(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(n,s,e,t,r)}async _onFailure(e,t,r,n,s){var o,i;if(r()){o=await this.Events.trigger("failed",e,t);if(o!=null){i=~~o;this.Events.trigger("retry",`Retrying ${this.options.id} after ${i} ms`,t);this.retryCount++;return n(i)}else{this.doDone(t);await s(this.options,t);this._assertStatus("DONE");return this._reject(e)}}}doDone(e){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",e)}};var E=g;var y,I,C;C=t;y=l;I=class LocalDatastore{constructor(e,t,r){this.instance=e;this.storeOptions=t;this.clientId=this.instance._randomIndex();C.load(r,r,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var e;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,s;n=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=n;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:s}=this.storeOptions);this._lastReservoirIncrease=n;t=r!=null?Math.min(e,r-s):e;if(t>0){this.storeOptions.reservoir+=t;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?e.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(e){await this.yieldLoop();return this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(e=0){return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){await this.yieldLoop();C.overwrite(e,e,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(e){await this.yieldLoop();return this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;await this.yieldLoop();t=Date.now();return this.check(e,t)}async __register__(e,t,r){var n,s;await this.yieldLoop();n=Date.now();if(this.conditionsCheck(t)){this._running+=t;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=t}s=Math.max(this._nextRequest-n,0);this._nextRequest=n+s+this.storeOptions.minTime;return{success:true,wait:s,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var r,n,s;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent){throw new y(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}n=Date.now();s=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,n);r=this.strategyIsBlock()&&(s||this.isBlocked(n));if(r){this._unblockTime=n+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:s,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){await this.yieldLoop();this._running-=t;this._done+=t;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var b=I;var B,Q;B=l;Q=class States{constructor(e){this.status=e;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(e){var t,r;t=this._jobs[e];r=t+1;if(t!=null&&r{e[this.status[r]]=t;return e}),{})}};var T=Q;var v,w;v=n;w=class Sync{constructor(e,t){this.schedule=this.schedule.bind(this);this.name=e;this.Promise=t;this._running=0;this._queue=new v}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,r,n,s,o,i;if(this._running<1&&this._queue.length>0){this._running++;({task:i,args:e,resolve:s,reject:n}=this._queue.shift());t=await async function(){try{o=await i(...e);return function(){return s(o)}}catch(e){r=e;return function(){return n(r)}}}();this._running--;this._tryToRun();return t()}}schedule(e,...t){var r,n,s;s=n=null;r=new this.Promise((function(e,t){s=e;return n=t}));this._queue.push({task:e,args:t,resolve:s,reject:n});this._tryToRun();return r}};var _=w;var O="2.19.5";var k={version:O};var R=Object.freeze({version:O,default:k});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var S,F,D,N,P,L;L=t;S=o;N=require$$2;D=require$$3;P=require$$4;F=function(){class Group{constructor(e={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=e;L.load(this.limiterOptions,this.defaults,this);this.Events=new S(this);this.instances={};this.Bottleneck=re;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new N(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new D(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(e=""){var t;return(t=this.instances[e])!=null?t:(()=>{var t;t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",t,e);return t})()}async deleteKey(e=""){var t,r;r=this.instances[e];if(this.connection){t=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${e}`)])}if(r!=null){delete this.instances[e];await r.disconnect()}return r!=null||t>0}limiters(){var e,t,r,n;t=this.instances;r=[];for(e in t){n=t[e];r.push({key:e,limiter:n})}return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,s,o,i,a,c;if(this.connection==null){return this.Promise.resolve(this.keys())}o=[];e=null;c=`b_${this.id}-`.length;t="_settings".length;while(e!==0){[a,r]=await this.connection.__runCommand__(["scan",e!=null?e:0,"match",`b_${this.id}-*_settings`,"count",1e4]);e=~~a;for(n=0,i=r.length;n{var e,t,r,n,s,o;s=Date.now();r=this.instances;n=[];for(t in r){o=r[t];try{if(await o._store.__groupCheck__(s)){n.push(this.deleteKey(t))}else{n.push(void 0)}}catch(t){e=t;n.push(o.Events.trigger("error",e))}}return n}),this.timeout/2)).unref==="function"?e.unref():void 0}updateSettings(e={}){L.overwrite(e,this.defaults,this);L.overwrite(e,e,this.limiterOptions);if(e.timeout!=null){return this._startAutoCleanup()}}disconnect(e=true){var t;if(!this.sharedConnection){return(t=this.connection)!=null?t.disconnect(e):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(e);var U=F;var M,x,G;G=t;x=o;M=function(){class Batcher{constructor(e={}){this.options=e;G.load(this.options,this.defaults,this);this.Events=new x(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(e){var t;this._arr.push(e);t=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return t}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(e);var j=M;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var V=getCjsExportFromNamespace(R);var H,q,Y,K,J,$,W,z,Z,X,ee,te=[].splice;$=10;q=5;ee=t;W=u;K=E;J=b;z=require$$4$1;Y=o;Z=T;X=_;H=function(){class Bottleneck{constructor(e={},...t){var r,n;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(e,t);ee.load(e,this.instanceDefaults,this);this._queues=new W($);this._scheduled={};this._states=new Z(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Y(this);this._submitLock=new X("submit",this.Promise);this._registerLock=new X("register",this.Promise);n=ee.load(e,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){r=ee.load(e,this.redisStoreDefaults,{});return new z(this,n,r)}else if(this.datastore==="local"){r=ee.load(e,this.localStoreDefaults,{});return new J(this,n,r)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.ref==="function"?e.ref():void 0:void 0}));this._queues.on("zero",(()=>{var e;return(e=this._store.heartbeat)!=null?typeof e.unref==="function"?e.unref():void 0:void 0}))}_validateOptions(e,t){if(!(e!=null&&typeof e==="object"&&t.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=true){return this._store.__disconnect__(e)}chain(e){this._limiter=e;return this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){if(this._scheduled[e]!=null){clearTimeout(this._scheduled[e].expiration);delete this._scheduled[e];return true}else{return false}}async _free(e,t,r,n){var s,o;try{({running:o}=await this._store.__free__(e,r.weight));this.Events.trigger("debug",`Freed ${r.id}`,n);if(o===0&&this.empty()){return this.Events.trigger("idle")}}catch(e){s=e;return this.Events.trigger("error",s)}}_run(e,t,r){var n,s,o;t.doRun();n=this._clearGlobalState.bind(this,e);o=this._run.bind(this,e,t);s=this._free.bind(this,e,t);return this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,o,s)),r),expiration:t.options.expiration!=null?setTimeout((function(){return t.doExpire(n,o,s)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,s,o;if(this.queued()===0){return this.Promise.resolve(null)}o=this._queues.getFirst();({options:s,args:t}=n=o.first());if(e!=null&&s.weight>e){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${s.id}`,{args:t,options:s});r=this._randomIndex();return this._store.__register__(r,s.weight,s.expiration).then((({success:e,wait:i,reservoir:a})=>{var c;this.Events.trigger("debug",`Drained ${s.id}`,{success:e,args:t,options:s});if(e){o.shift();c=this.empty();if(c){this.Events.trigger("empty")}if(a===0){this.Events.trigger("depleted",c)}this._run(r,n,i);return this.Promise.resolve(s.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(e,t=0){return this._drainOne(e).then((r=>{var n;if(r!=null){n=e!=null?e-r:e;return this._drainAll(n,t+r)}else{return this.Promise.resolve(t)}})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(e={}){var t,r;e=ee.load(e,this.stopDefaults);r=e=>{var t;t=()=>{var t;t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise(((e,r)=>{if(t()){return e()}else{return this.on("done",(()=>{if(t()){this.removeAllListeners("done");return e()}}))}}))};t=e.dropWaitingJobs?(this._run=function(t,r){return r.doDrop({message:e.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var t,n,s;n=this._scheduled;for(t in n){s=n[t];if(this.jobStatus(s.job.options.id)==="RUNNING"){clearTimeout(s.timeout);clearTimeout(s.expiration);s.job.doDrop({message:e.dropErrorMessage})}}this._dropAllQueued(e.dropErrorMessage);return r(0)}))))):this.schedule({priority:$-1,weight:0},(()=>r(1)));this._receive=function(t){return t._reject(new Bottleneck.prototype.BottleneckError(e.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return t}async _addToQueue(e){var t,r,n,s,o,i,a;({args:t,options:s}=e);try{({reachedHWM:o,blocked:r,strategy:a}=await this._store.__submit__(this.queued(),s.weight))}catch(r){n=r;this.Events.trigger("debug",`Could not queue ${s.id}`,{args:t,options:s,error:n});e.doDrop({error:n});return false}if(r){e.doDrop();return true}else if(o){i=a===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(s.priority):a===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(s.priority+1):a===Bottleneck.prototype.strategy.OVERFLOW?e:void 0;if(i!=null){i.doDrop()}if(i==null||a===Bottleneck.prototype.strategy.OVERFLOW){if(i==null){e.doDrop()}return o}}e.doQueue(o,r);this._queues.push(e);await this._drainAll();return o}_receive(e){if(this._states.jobStatus(e.options.id)!=null){e._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${e.options.id})`));return false}else{e.doReceive();return this._submitLock.schedule(this._addToQueue,e)}}submit(...e){var t,r,n,s,o,i,a;if(typeof e[0]==="function"){o=e,[r,...e]=o,[t]=te.call(e,-1);s=ee.load({},this.jobDefaults)}else{i=e,[s,r,...e]=i,[t]=te.call(e,-1);s=ee.load(s,this.jobDefaults)}a=(...e)=>new this.Promise((function(t,n){return r(...e,(function(...e){return(e[0]!=null?n:t)(e)}))}));n=new K(a,e,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);n.promise.then((function(e){return typeof t==="function"?t(...e):void 0})).catch((function(e){if(Array.isArray(e)){return typeof t==="function"?t(...e):void 0}else{return typeof t==="function"?t(e):void 0}}));return this._receive(n)}schedule(...e){var t,r,n;if(typeof e[0]==="function"){[n,...e]=e;r={}}else{[r,n,...e]=e}t=new K(n,e,r,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(t);return t.promise}wrap(e){var t,r;t=this.schedule.bind(this);r=function(...r){return t(e.bind(this),...r)};r.withOptions=function(r,...n){return t(r,e,...n)};return r}async updateSettings(e={}){await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults));ee.overwrite(e,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Y;Bottleneck.version=Bottleneck.prototype.version=V.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=l;Bottleneck.Group=Bottleneck.prototype.Group=U;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=j;Bottleneck.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(e);var re=H;var ne=re;return ne}))},91769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},18889:(e,t,r)=>{const n=r(79896);const s=r(16928);const o=r(70857);const i=r(76982);const a=r(80056);const c=a.version;const u=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=u.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const s=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(s==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){const t=_vaultPath(e);const r=A.configDotenv({path:t});if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const s=n.length;let o;for(let e=0;e=s){throw t}}}return A.parse(o)}function _log(e){console.log(`[dotenv@${c}][INFO] ${e}`)}function _warn(e){console.log(`[dotenv@${c}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${c}][DEBUG] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const s=r.searchParams.get("environment");if(!s){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${s.toUpperCase()}`;const i=e.parsed[o];if(!i){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:i,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=s.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?s.join(o.homedir(),e.slice(1)):e}function _configVault(e){_log("Loading env from encrypted .env.vault");const t=A._parseVault(e);let r=process.env;if(e&&e.processEnv!=null){r=e.processEnv}A.populate(r,t,e);return{parsed:t}}function configDotenv(e){const t=s.resolve(process.cwd(),".env");let r="utf8";const o=Boolean(e&&e.debug);if(e&&e.encoding){r=e.encoding}else{if(o){_debug("No encoding is specified. UTF-8 is used by default")}}let i=[t];if(e&&e.path){if(!Array.isArray(e.path)){i=[_resolveHome(e.path)]}else{i=[];for(const t of e.path){i.push(_resolveHome(t))}}}let a;const c={};for(const t of i){try{const s=A.parse(n.readFileSync(t,{encoding:r}));A.populate(c,s,e)}catch(e){if(o){_debug(`Failed to load ${t} ${e.message}`)}a=e}}let u=process.env;if(e&&e.processEnv!=null){u=e.processEnv}A.populate(u,c,e);if(a){return{parsed:c,error:a}}else{return{parsed:c}}}function config(e){if(_dotenvKey(e).length===0){return A.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return A.configDotenv(e)}return A._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const s=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=i.createDecipheriv("aes-256-gcm",r,s);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const s=Boolean(r&&r.override);if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(s===true){e[r]=t[r]}if(n){if(s===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r]}}}const A={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=A.configDotenv;e.exports._configVault=A._configVault;e.exports._parseVault=A._parseVault;e.exports.config=A.config;e.exports.decrypt=A.decrypt;e.exports.parse=A.parse;e.exports.populate=A.populate;e.exports=A},31240:function(e,t,r){(function(e,n){true?n(t,r(61860),r(17645)):0})(this,(function(e,t,r){"use strict";var n=new Map;var s=new Map;var o=true;var i=false;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}function processFragments(e){var r=new Set;var n=[];e.definitions.forEach((function(e){if(e.kind==="FragmentDefinition"){var t=e.name.value;var i=cacheKeyFromLoc(e.loc);var a=s.get(t);if(a&&!a.has(i)){if(o){console.warn("Warning: fragment with name "+t+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}}else if(!a){s.set(t,a=new Set)}a.add(i);if(!r.has(i)){r.add(i);n.push(e)}}else{n.push(e)}}));return t.__assign(t.__assign({},e),{definitions:n})}function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){if(e.loc)delete e.loc;Object.keys(e).forEach((function(r){var n=e[r];if(n&&typeof n==="object"){t.add(n)}}))}));var r=e.loc;if(r){delete r.startToken;delete r.endToken}return e}function parseDocument(e){var t=normalize(e);if(!n.has(t)){var s=r.parse(e,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!s||s.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}n.set(t,stripLoc(processFragments(s)))}return n.get(t)}function gql(e){var t=[];for(var r=1;r{e.exports=r(31240).gql},15939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=void 0;t.formatError=formatError;t.printError=printError;var n=r(20892);var s=r(72245);var o=r(6512);function toNormalizedOptions(e){const t=e[0];if(t==null||"kind"in t||"length"in t){return{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}}return t}class GraphQLError extends Error{constructor(e,...t){var r,o,i;const{nodes:a,source:c,positions:u,path:A,originalError:l,extensions:d}=toNormalizedOptions(t);super(e);this.name="GraphQLError";this.path=A!==null&&A!==void 0?A:undefined;this.originalError=l!==null&&l!==void 0?l:undefined;this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:undefined);const p=undefinedIfEmpty((r=this.nodes)===null||r===void 0?void 0:r.map((e=>e.loc)).filter((e=>e!=null)));this.source=c!==null&&c!==void 0?c:p===null||p===void 0?void 0:(o=p[0])===null||o===void 0?void 0:o.source;this.positions=u!==null&&u!==void 0?u:p===null||p===void 0?void 0:p.map((e=>e.start));this.locations=u&&c?u.map((e=>(0,s.getLocation)(c,e))):p===null||p===void 0?void 0:p.map((e=>(0,s.getLocation)(e.source,e.start)));const g=(0,n.isObjectLike)(l===null||l===void 0?void 0:l.extensions)?l===null||l===void 0?void 0:l.extensions:undefined;this.extensions=(i=d!==null&&d!==void 0?d:g)!==null&&i!==void 0?i:Object.create(null);Object.defineProperties(this,{message:{writable:true,enumerable:true},name:{enumerable:false},nodes:{enumerable:false},source:{enumerable:false},positions:{enumerable:false},originalError:{enumerable:false}});if(l!==null&&l!==void 0&&l.stack){Object.defineProperty(this,"stack",{value:l.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,GraphQLError)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(const t of this.nodes){if(t.loc){e+="\n\n"+(0,o.printLocation)(t.loc)}}}else if(this.source&&this.locations){for(const t of this.locations){e+="\n\n"+(0,o.printSourceLocation)(this.source,t)}}return e}toJSON(){const e={message:this.message};if(this.locations!=null){e.locations=this.locations}if(this.path!=null){e.path=this.path}if(this.extensions!=null&&Object.keys(this.extensions).length>0){e.extensions=this.extensions}return e}}t.GraphQLError=GraphQLError;function undefinedIfEmpty(e){return e===undefined||e.length===0?undefined:e}function printError(e){return e.toString()}function formatError(e){return e.toJSON()}},79888:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return n.GraphQLError}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return n.formatError}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return o.locatedError}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return n.printError}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return s.syntaxError}});var n=r(15939);var s=r(89619);var o=r(87550)},87550:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.locatedError=locatedError;var n=r(39615);var s=r(15939);function locatedError(e,t,r){var o;const i=(0,n.toError)(e);if(isLocatedGraphQLError(i)){return i}return new s.GraphQLError(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:t,source:i.source,positions:i.positions,path:r,originalError:i})}function isLocatedGraphQLError(e){return Array.isArray(e.path)}},89619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=syntaxError;var n=r(15939);function syntaxError(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},77611:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.collectFields=collectFields;t.collectSubfields=collectSubfields;var n=r(11123);var s=r(84169);var o=r(21058);var i=r(76738);var a=r(13604);function collectFields(e,t,r,n,s){const o=new Map;collectFieldsImpl(e,t,r,n,s,o,new Set);return o}function collectSubfields(e,t,r,n,s){const o=new Map;const i=new Set;for(const a of s){if(a.selectionSet){collectFieldsImpl(e,t,r,n,a.selectionSet,o,i)}}return o}function collectFieldsImpl(e,t,r,s,o,i,a){for(const c of o.selections){switch(c.kind){case n.Kind.FIELD:{if(!shouldIncludeNode(r,c)){continue}const e=getFieldEntryKey(c);const t=i.get(e);if(t!==undefined){t.push(c)}else{i.set(e,[c])}break}case n.Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(r,c)||!doesFragmentConditionMatch(e,c,s)){continue}collectFieldsImpl(e,t,r,s,c.selectionSet,i,a);break}case n.Kind.FRAGMENT_SPREAD:{const n=c.name.value;if(a.has(n)||!shouldIncludeNode(r,c)){continue}a.add(n);const o=t[n];if(!o||!doesFragmentConditionMatch(e,o,s)){continue}collectFieldsImpl(e,t,r,s,o.selectionSet,i,a);break}}}}function shouldIncludeNode(e,t){const r=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if((r===null||r===void 0?void 0:r.if)===true){return false}const n=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);if((n===null||n===void 0?void 0:n.if)===false){return false}return true}function doesFragmentConditionMatch(e,t,r){const n=t.typeCondition;if(!n){return true}const o=(0,i.typeFromAST)(e,n);if(o===r){return true}if((0,s.isAbstractType)(o)){return e.isSubType(o,r)}return false}function getFieldEntryKey(e){return e.alias?e.alias.value:e.name.value}},98923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidExecutionArguments=assertValidExecutionArguments;t.buildExecutionContext=buildExecutionContext;t.buildResolveInfo=buildResolveInfo;t.defaultTypeResolver=t.defaultFieldResolver=void 0;t.execute=execute;t.executeSync=executeSync;t.getFieldDef=getFieldDef;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(4091);var u=r(38141);var A=r(73155);var l=r(65395);var d=r(71369);var p=r(15939);var g=r(87550);var h=r(22740);var m=r(11123);var E=r(84169);var y=r(10317);var I=r(33902);var C=r(77611);var b=r(13604);const B=(0,u.memoize3)(((e,t,r)=>(0,C.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r)));function execute(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:s,rootValue:o}=e;assertValidExecutionArguments(t,r,s);const i=buildExecutionContext(e);if(!("schema"in i)){return{errors:i}}try{const{operation:e}=i;const t=executeOperation(i,e,o);if((0,c.isPromise)(t)){return t.then((e=>buildResponse(e,i.errors)),(e=>{i.errors.push(e);return buildResponse(null,i.errors)}))}return buildResponse(t,i.errors)}catch(e){i.errors.push(e);return buildResponse(null,i.errors)}}function executeSync(e){const t=execute(e);if((0,c.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function buildResponse(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function assertValidExecutionArguments(e,t,r){t||(0,n.devAssert)(false,"Must provide document.");(0,I.assertValidSchema)(e);r==null||(0,a.isObjectLike)(r)||(0,n.devAssert)(false,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(e){var t,r;const{schema:n,document:s,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:u,typeResolver:A,subscribeFieldResolver:l}=e;let d;const g=Object.create(null);for(const e of s.definitions){switch(e.kind){case m.Kind.OPERATION_DEFINITION:if(c==null){if(d!==undefined){return[new p.GraphQLError("Must provide operation name if query contains multiple operations.")]}d=e}else if(((t=e.name)===null||t===void 0?void 0:t.value)===c){d=e}break;case m.Kind.FRAGMENT_DEFINITION:g[e.name.value]=e;break;default:}}if(!d){if(c!=null){return[new p.GraphQLError(`Unknown operation named "${c}".`)]}return[new p.GraphQLError("Must provide an operation.")]}const h=(r=d.variableDefinitions)!==null&&r!==void 0?r:[];const E=(0,b.getVariableValues)(n,h,a!==null&&a!==void 0?a:{},{maxErrors:50});if(E.errors){return E.errors}return{schema:n,fragments:g,rootValue:o,contextValue:i,operation:d,variableValues:E.coerced,fieldResolver:u!==null&&u!==void 0?u:defaultFieldResolver,typeResolver:A!==null&&A!==void 0?A:defaultTypeResolver,subscribeFieldResolver:l!==null&&l!==void 0?l:defaultFieldResolver,errors:[]}}function executeOperation(e,t,r){const n=e.schema.getRootType(t.operation);if(n==null){throw new p.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t})}const s=(0,C.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet);const o=undefined;switch(t.operation){case h.OperationTypeNode.QUERY:return executeFields(e,n,r,o,s);case h.OperationTypeNode.MUTATION:return executeFieldsSerially(e,n,r,o,s);case h.OperationTypeNode.SUBSCRIPTION:return executeFields(e,n,r,o,s)}}function executeFieldsSerially(e,t,r,n,s){return(0,d.promiseReduce)(s.entries(),((s,[o,i])=>{const a=(0,A.addPath)(n,o,t.name);const u=executeField(e,t,r,i,a);if(u===undefined){return s}if((0,c.isPromise)(u)){return u.then((e=>{s[o]=e;return s}))}s[o]=u;return s}),Object.create(null))}function executeFields(e,t,r,n,s){const o=Object.create(null);let i=false;try{for(const[a,u]of s.entries()){const s=(0,A.addPath)(n,a,t.name);const l=executeField(e,t,r,u,s);if(l!==undefined){o[a]=l;if((0,c.isPromise)(l)){i=true}}}}catch(e){if(i){return(0,l.promiseForObject)(o).finally((()=>{throw e}))}throw e}if(!i){return o}return(0,l.promiseForObject)(o)}function executeField(e,t,r,n,s){var o;const i=getFieldDef(e.schema,t,n[0]);if(!i){return}const a=i.type;const u=(o=i.resolve)!==null&&o!==void 0?o:e.fieldResolver;const l=buildResolveInfo(e,i,n,t,s);try{const t=(0,b.getArgumentValues)(i,n[0],e.variableValues);const o=e.contextValue;const d=u(r,t,o,l);let p;if((0,c.isPromise)(d)){p=d.then((t=>completeValue(e,a,n,l,s,t)))}else{p=completeValue(e,a,n,l,s,d)}if((0,c.isPromise)(p)){return p.then(undefined,(t=>{const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}))}return p}catch(t){const r=(0,g.locatedError)(t,n,(0,A.pathToArray)(s));return handleFieldError(r,a,e)}}function buildResolveInfo(e,t,r,n,s){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:s,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function handleFieldError(e,t,r){if((0,E.isNonNullType)(t)){throw e}r.errors.push(e);return null}function completeValue(e,t,r,n,i,a){if(a instanceof Error){throw a}if((0,E.isNonNullType)(t)){const s=completeValue(e,t.ofType,r,n,i,a);if(s===null){throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`)}return s}if(a==null){return null}if((0,E.isListType)(t)){return completeListValue(e,t,r,n,i,a)}if((0,E.isLeafType)(t)){return completeLeafValue(t,a)}if((0,E.isAbstractType)(t)){return completeAbstractValue(e,t,r,n,i,a)}if((0,E.isObjectType)(t)){return completeObjectValue(e,t,r,n,i,a)}false||(0,o.invariant)(false,"Cannot complete value of unexpected output type: "+(0,s.inspect)(t))}function completeListValue(e,t,r,n,s,o){if(!(0,i.isIterableObject)(o)){throw new p.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`)}const a=t.ofType;let u=false;const l=Array.from(o,((t,o)=>{const i=(0,A.addPath)(s,o,undefined);try{let s;if((0,c.isPromise)(t)){s=t.then((t=>completeValue(e,a,r,n,i,t)))}else{s=completeValue(e,a,r,n,i,t)}if((0,c.isPromise)(s)){u=true;return s.then(undefined,(t=>{const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}))}return s}catch(t){const n=(0,g.locatedError)(t,r,(0,A.pathToArray)(i));return handleFieldError(n,a,e)}}));return u?Promise.all(l):l}function completeLeafValue(e,t){const r=e.serialize(t);if(r==null){throw new Error(`Expected \`${(0,s.inspect)(e)}.serialize(${(0,s.inspect)(t)})\` to `+`return non-nullable value, returned: ${(0,s.inspect)(r)}`)}return r}function completeAbstractValue(e,t,r,n,s,o){var i;const a=(i=t.resolveType)!==null&&i!==void 0?i:e.typeResolver;const u=e.contextValue;const A=a(o,u,n,t);if((0,c.isPromise)(A)){return A.then((i=>completeObjectValue(e,ensureValidRuntimeType(i,e,t,r,n,o),r,n,s,o)))}return completeObjectValue(e,ensureValidRuntimeType(A,e,t,r,n,o),r,n,s,o)}function ensureValidRuntimeType(e,t,r,n,o,i){if(e==null){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n)}if((0,E.isObjectType)(e)){throw new p.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.")}if(typeof e!=="string"){throw new p.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with `+`value ${(0,s.inspect)(i)}, received "${(0,s.inspect)(e)}".`)}const a=t.schema.getType(e);if(a==null){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n})}if(!(0,E.isObjectType)(a)){throw new p.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n})}if(!t.schema.isSubType(r,a)){throw new p.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n})}return a}function completeObjectValue(e,t,r,n,s,o){const i=B(e,t,r);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,n);if((0,c.isPromise)(a)){return a.then((n=>{if(!n){throw invalidReturnTypeError(t,o,r)}return executeFields(e,t,o,s,i)}))}if(!a){throw invalidReturnTypeError(t,o,r)}}return executeFields(e,t,o,s,i)}function invalidReturnTypeError(e,t,r){return new p.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,s.inspect)(t)}.`,{nodes:r})}const defaultTypeResolver=function(e,t,r,n){if((0,a.isObjectLike)(e)&&typeof e.__typename==="string"){return e.__typename}const s=r.schema.getPossibleTypes(n);const o=[];for(let n=0;n{for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return o.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return s.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return s.defaultTypeResolver}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return s.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return s.executeSync}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return i.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return i.getDirectiveValues}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return i.getVariableValues}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return n.pathToArray}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return o.subscribe}});var n=r(73155);var s=r(98923);var o=r(48540);var i=r(13604)},974:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapAsyncIterator=mapAsyncIterator;function mapAsyncIterator(e,t){const r=e[Symbol.asyncIterator]();async function mapResult(e){if(e.done){return e}try{return{value:await t(e.value),done:false}}catch(e){if(typeof r.return==="function"){try{await r.return()}catch(e){}}throw e}}return{async next(){return mapResult(await r.next())},async return(){return typeof r.return==="function"?mapResult(await r.return()):{value:undefined,done:true}},async throw(e){if(typeof r.throw==="function"){return mapResult(await r.throw(e))}throw e},[Symbol.asyncIterator](){return this}}}},48540:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.createSourceEventStream=createSourceEventStream;t.subscribe=subscribe;var n=r(65383);var s=r(25742);var o=r(34068);var i=r(73155);var a=r(15939);var c=r(87550);var u=r(77611);var A=r(98923);var l=r(974);var d=r(13604);async function subscribe(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await createSourceEventStream(e);if(!(0,o.isAsyncIterable)(t)){return t}const mapSourceToResponse=t=>(0,A.execute)({...e,rootValue:t});return(0,l.mapAsyncIterator)(t,mapSourceToResponse)}function toNormalizedArgs(e){const t=e[0];if(t&&"document"in t){return t}return{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function createSourceEventStream(...e){const t=toNormalizedArgs(e);const{schema:r,document:n,variableValues:i}=t;(0,A.assertValidExecutionArguments)(r,n,i);const c=(0,A.buildExecutionContext)(t);if(!("schema"in c)){return{errors:c}}try{const e=await executeSubscription(c);if(!(0,o.isAsyncIterable)(e)){throw new Error("Subscription field must return Async Iterable. "+`Received: ${(0,s.inspect)(e)}.`)}return e}catch(e){if(e instanceof a.GraphQLError){return{errors:[e]}}throw e}}async function executeSubscription(e){const{schema:t,fragments:r,operation:n,variableValues:s,rootValue:o}=e;const l=t.getSubscriptionType();if(l==null){throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n})}const p=(0,u.collectFields)(t,r,s,l,n.selectionSet);const[g,h]=[...p.entries()][0];const m=(0,A.getFieldDef)(t,l,h[0]);if(!m){const e=h[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:h})}const E=(0,i.addPath)(undefined,g,l.name);const y=(0,A.buildResolveInfo)(e,m,h,l,E);try{var I;const t=(0,d.getArgumentValues)(m,h[0],s);const r=e.contextValue;const n=(I=m.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver;const i=await n(o,t,r,y);if(i instanceof Error){throw i}return i}catch(e){throw(0,c.locatedError)(e,h,(0,i.pathToArray)(E))}}},13604:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getArgumentValues=getArgumentValues;t.getDirectiveValues=getDirectiveValues;t.getVariableValues=getVariableValues;var n=r(25742);var s=r(37579);var o=r(68373);var i=r(15939);var a=r(11123);var c=r(59936);var u=r(84169);var A=r(67572);var l=r(76738);var d=r(46495);function getVariableValues(e,t,r,n){const s=[];const o=n===null||n===void 0?void 0:n.maxErrors;try{const n=coerceVariableValues(e,t,r,(e=>{if(o!=null&&s.length>=o){throw new i.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.")}s.push(e)}));if(s.length===0){return{coerced:n}}}catch(e){s.push(e)}return{errors:s}}function coerceVariableValues(e,t,r,s){const a={};for(const p of t){const t=p.variable.name.value;const g=(0,l.typeFromAST)(e,p.type);if(!(0,u.isInputType)(g)){const e=(0,c.print)(p.type);s(new i.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:p.type}));continue}if(!hasOwnProperty(r,t)){if(p.defaultValue){a[t]=(0,d.valueFromAST)(p.defaultValue,g)}else if((0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:p}))}continue}const h=r[t];if(h===null&&(0,u.isNonNullType)(g)){const e=(0,n.inspect)(g);s(new i.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:p}));continue}a[t]=(0,A.coerceInputValue)(h,g,((e,r,a)=>{let c=`Variable "$${t}" got invalid value `+(0,n.inspect)(r);if(e.length>0){c+=` at "${t}${(0,o.printPathArray)(e)}"`}s(new i.GraphQLError(c+"; "+a.message,{nodes:p,originalError:a}))}))}return a}function getArgumentValues(e,t,r){var o;const A={};const l=(o=t.arguments)!==null&&o!==void 0?o:[];const p=(0,s.keyMap)(l,(e=>e.name.value));for(const s of e.args){const e=s.name;const o=s.type;const l=p[e];if(!l){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+"was not provided.",{nodes:t})}continue}const g=l.value;let h=g.kind===a.Kind.NULL;if(g.kind===a.Kind.VARIABLE){const t=g.name.value;if(r==null||!hasOwnProperty(r,t)){if(s.defaultValue!==undefined){A[e]=s.defaultValue}else if((0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of required type "${(0,n.inspect)(o)}" `+`was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:g})}continue}h=r[t]==null}if(h&&(0,u.isNonNullType)(o)){throw new i.GraphQLError(`Argument "${e}" of non-null type "${(0,n.inspect)(o)}" `+"must not be null.",{nodes:g})}const m=(0,d.valueFromAST)(g,o,r);if(m===undefined){throw new i.GraphQLError(`Argument "${e}" has invalid value ${(0,c.print)(g)}.`,{nodes:g})}A[e]=m}return A}function getDirectiveValues(e,t,r){var n;const s=(n=t.directives)===null||n===void 0?void 0:n.find((t=>t.name.value===e.name));if(s){return getArgumentValues(e,s,r)}}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},66352:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.graphql=graphql;t.graphqlSync=graphqlSync;var n=r(65383);var s=r(4091);var o=r(14929);var i=r(33902);var a=r(77063);var c=r(98923);function graphql(e){return new Promise((t=>t(graphqlImpl(e))))}function graphqlSync(e){const t=graphqlImpl(e);if((0,s.isPromise)(t)){throw new Error("GraphQL execution failed to complete synchronously.")}return t}function graphqlImpl(e){arguments.length<2||(0,n.devAssert)(false,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p}=e;const g=(0,i.validateSchema)(t);if(g.length>0){return{errors:g}}let h;try{h=(0,o.parse)(r)}catch(e){return{errors:[e]}}const m=(0,a.validate)(t,h);if(m.length>0){return{errors:m}}return(0,c.execute)({schema:t,document:h,rootValue:s,contextValue:u,variableValues:A,operationName:l,fieldResolver:d,typeResolver:p})}},17645:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return i.BREAK}});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return A.BreakingChangeType}});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return A.DangerousChangeType}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return i.DirectiveLocation}});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return o.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return o.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return o.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return o.GraphQLEnumType}});Object.defineProperty(t,"GraphQLError",{enumerable:true,get:function(){return u.GraphQLError}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return o.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return o.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return o.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return o.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return o.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return o.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return o.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return o.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return o.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return o.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return o.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return o.GraphQLUnionType}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return i.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return i.Location}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return i.OperationTypeNode}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return o.SchemaMetaFieldDef}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return i.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return i.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return i.TokenKind}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return A.TypeInfo}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return o.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return o.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return o.TypeNameMetaFieldDef}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return c.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return o.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return o.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return o.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return o.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return o.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return o.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return o.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return o.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return o.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return o.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return o.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return o.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return o.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return o.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return o.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return o.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return o.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return o.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return o.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return o.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return o.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return o.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return o.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return o.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return o.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return o.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return o.assertUnionType}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return A.assertValidName}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return o.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return o.assertWrappingType}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return A.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return A.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return A.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return A.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return A.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return A.concatAST}});Object.defineProperty(t,"createSourceEventStream",{enumerable:true,get:function(){return a.createSourceEventStream}});Object.defineProperty(t,"defaultFieldResolver",{enumerable:true,get:function(){return a.defaultFieldResolver}});Object.defineProperty(t,"defaultTypeResolver",{enumerable:true,get:function(){return a.defaultTypeResolver}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return A.doTypesOverlap}});Object.defineProperty(t,"execute",{enumerable:true,get:function(){return a.execute}});Object.defineProperty(t,"executeSync",{enumerable:true,get:function(){return a.executeSync}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return A.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return A.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return A.findDangerousChanges}});Object.defineProperty(t,"formatError",{enumerable:true,get:function(){return u.formatError}});Object.defineProperty(t,"getArgumentValues",{enumerable:true,get:function(){return a.getArgumentValues}});Object.defineProperty(t,"getDirectiveValues",{enumerable:true,get:function(){return a.getDirectiveValues}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return i.getEnterLeaveForKind}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return A.getIntrospectionQuery}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return i.getLocation}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return o.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return o.getNullableType}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return A.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return A.getOperationRootType}});Object.defineProperty(t,"getVariableValues",{enumerable:true,get:function(){return a.getVariableValues}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return i.getVisitFn}});Object.defineProperty(t,"graphql",{enumerable:true,get:function(){return s.graphql}});Object.defineProperty(t,"graphqlSync",{enumerable:true,get:function(){return s.graphqlSync}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return A.introspectionFromSchema}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return o.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return o.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return o.isCompositeType}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return i.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return i.isDefinitionNode}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return o.isEnumType}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return A.isEqualType}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return i.isExecutableDefinitionNode}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return o.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return o.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return o.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return o.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return o.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return o.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return o.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return o.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return o.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return o.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return o.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return o.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return o.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return o.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return o.isSchema}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return i.isSelectionNode}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return o.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return o.isType}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return i.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return i.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return i.isTypeNode}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return A.isTypeSubTypeOf}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return i.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return i.isTypeSystemExtensionNode}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return o.isUnionType}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return A.isValidNameError}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return i.isValueNode}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return o.isWrappingType}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"locatedError",{enumerable:true,get:function(){return u.locatedError}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return i.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return i.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return i.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return i.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return i.print}});Object.defineProperty(t,"printError",{enumerable:true,get:function(){return u.printError}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return A.printIntrospectionSchema}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return i.printLocation}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return A.printSchema}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return i.printSourceLocation}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return A.printType}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return c.recommendedRules}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return o.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return o.resolveReadonlyArrayThunk}});Object.defineProperty(t,"responsePathAsArray",{enumerable:true,get:function(){return a.responsePathAsArray}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return A.separateOperations}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return c.specifiedRules}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return o.specifiedScalarTypes}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return A.stripIgnoredCharacters}});Object.defineProperty(t,"subscribe",{enumerable:true,get:function(){return a.subscribe}});Object.defineProperty(t,"syntaxError",{enumerable:true,get:function(){return u.syntaxError}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return A.typeFromAST}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return c.validate}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return o.validateSchema}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return A.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return A.valueFromASTUntyped}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return n.version}});Object.defineProperty(t,"versionInfo",{enumerable:true,get:function(){return n.versionInfo}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return i.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return i.visitInParallel}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return A.visitWithTypeInfo}});var n=r(98725);var s=r(66352);var o=r(66618);var i=r(70068);var a=r(34404);var c=r(47973);var u=r(79888);var A=r(47006)},73155:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.addPath=addPath;t.pathToArray=pathToArray;function addPath(e,t,r){return{prev:e,key:t,typename:r}}function pathToArray(e){const t=[];let r=e;while(r){t.push(r.key);r=r.prev}return t.reverse()}},65383:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.devAssert=devAssert;function devAssert(e,t){const r=Boolean(e);if(!r){throw new Error(t)}}},41353:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.didYouMean=didYouMean;const r=5;function didYouMean(e,t){const[n,s]=t?[e,t]:[undefined,e];let o=" Did you mean ";if(n){o+=n+" "}const i=s.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,r);const c=a.pop();return o+a.join(", ")+", or "+c+"?"}},48520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.groupBy=groupBy;function groupBy(e,t){const r=new Map;for(const n of e){const e=t(n);const s=r.get(e);if(s===undefined){r.set(e,[n])}else{s.push(n)}}return r}},86588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.identityFunc=identityFunc;function identityFunc(e){return e}},25742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.inspect=inspect;const r=10;const n=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(e===null){return"null"}if(t.includes(e)){return"[Circular]"}const r=[...t,e];if(isJSONable(e)){const t=e.toJSON();if(t!==e){return typeof t==="string"?t:formatValue(t,r)}}else if(Array.isArray(e)){return formatArray(e,r)}return formatObject(e,r)}function isJSONable(e){return typeof e.toJSON==="function"}function formatObject(e,t){const r=Object.entries(e);if(r.length===0){return"{}"}if(t.length>n){return"["+getObjectTag(e)+"]"}const s=r.map((([e,r])=>e+": "+formatValue(r,t)));return"{ "+s.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>n){return"[Array]"}const s=Math.min(r,e.length);const o=e.length-s;const i=[];for(let r=0;r1){i.push(`... ${o} more items`)}return"["+i.join(", ")+"]"}function getObjectTag(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){const t=e.constructor.name;if(typeof t==="string"&&t!==""){return t}}return t}},45914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.instanceOf=void 0;var n=r(25742);const s=globalThis.process&&process.env.NODE_ENV==="production";const o=s?function instanceOf(e,t){return e instanceof t}:function instanceOf(e,t){if(e instanceof t){return true}if(typeof e==="object"&&e!==null){var r;const s=t.prototype[Symbol.toStringTag];const o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(r=e.constructor)===null||r===void 0?void 0:r.name;if(s===o){const t=(0,n.inspect)(e);throw new Error(`Cannot use ${s} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return false};t.instanceOf=o},33650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.invariant=invariant;function invariant(e,t){const r=Boolean(e);if(!r){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}},34068:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=isAsyncIterable;function isAsyncIterable(e){return typeof(e===null||e===void 0?void 0:e[Symbol.asyncIterator])==="function"}},17341:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isIterableObject=isIterableObject;function isIterableObject(e){return typeof e==="object"&&typeof(e===null||e===void 0?void 0:e[Symbol.iterator])==="function"}},20892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isObjectLike=isObjectLike;function isObjectLike(e){return typeof e=="object"&&e!==null}},4091:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isPromise=isPromise;function isPromise(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}},37579:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyMap=keyMap;function keyMap(e,t){const r=Object.create(null);for(const n of e){r[t(n)]=n}return r}},3166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.keyValMap=keyValMap;function keyValMap(e,t,r){const n=Object.create(null);for(const s of e){n[t(s)]=r(s)}return n}},65719:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mapValue=mapValue;function mapValue(e,t){const r=Object.create(null);for(const n of Object.keys(e)){r[n]=t(e[n],n)}return r}},38141:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.memoize3=memoize3;function memoize3(e){let t;return function memoized(r,n,s){if(t===undefined){t=new WeakMap}let o=t.get(r);if(o===undefined){o=new WeakMap;t.set(r,o)}let i=o.get(n);if(i===undefined){i=new WeakMap;o.set(n,i)}let a=i.get(s);if(a===undefined){a=e(r,n,s);i.set(s,a)}return a}}},23428:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.naturalCompare=naturalCompare;function naturalCompare(e,t){let n=0;let s=0;while(n0);let c=0;do{++s;c=c*10+i-r;i=t.charCodeAt(s)}while(isDigit(i)&&c>0);if(ac){return 1}}else{if(oi){return 1}++n;++s}}return e.length-t.length}const r=48;const n=57;function isDigit(e){return!isNaN(e)&&r<=e&&e<=n}},68373:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printPathArray=printPathArray;function printPathArray(e){return e.map((e=>typeof e==="number"?"["+e.toString()+"]":"."+e)).join("")}},65395:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseForObject=promiseForObject;function promiseForObject(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,s]of Object.keys(e).entries()){r[s]=t[n]}return r}))}},71369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.promiseReduce=promiseReduce;var n=r(4091);function promiseReduce(e,t,r){let s=r;for(const r of e){s=(0,n.isPromise)(s)?s.then((e=>t(e,r))):t(s,r)}return s}},47904:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.suggestionList=suggestionList;var n=r(23428);function suggestionList(e,t){const r=Object.create(null);const s=new LexicalDistance(e);const o=Math.floor(e.length*.4)+1;for(const e of t){const t=s.measure(e,o);if(t!==undefined){r[e]=t}}return Object.keys(r).sort(((e,t)=>{const s=r[e]-r[t];return s!==0?s:(0,n.naturalCompare)(e,t)}))}class LexicalDistance{constructor(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=stringToArray(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e){return 0}const r=e.toLowerCase();if(this._inputLowerCase===r){return 1}let n=stringToArray(r);let s=this._inputArray;if(n.lengtht){return undefined}const a=this._rows;for(let e=0;e<=i;e++){a[0][e]=e}for(let e=1;e<=o;e++){const r=a[(e-1)%3];const o=a[e%3];let c=o[0]=e;for(let t=1;t<=i;t++){const i=n[e-1]===s[t-1]?0:1;let u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+i);if(e>1&&t>1&&n[e-1]===s[t-2]&&n[e-2]===s[t-1]){const r=a[(e-2)%3][t-2];u=Math.min(u,r+1)}if(ut){return undefined}}const c=a[o%3][i];return c<=t?c:undefined}}function stringToArray(e){const t=e.length;const r=new Array(t);for(let n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.toError=toError;var n=r(25742);function toError(e){return e instanceof Error?e:new NonErrorThrown(e)}class NonErrorThrown extends Error{constructor(e){super("Unexpected error value: "+(0,n.inspect)(e));this.name="NonErrorThrown";this.thrownValue=e}}},87104:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toObjMap=toObjMap;function toObjMap(e){if(e==null){return Object.create(null)}if(Object.getPrototypeOf(e)===null){return e}const t=Object.create(null);for(const[r,n]of Object.entries(e)){t[r]=n}return t}},22740:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0;t.isNode=isNode;class Location{constructor(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=Location;class Token{constructor(e,t,r,n,s,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=s;this.value=o;this.prev=null;this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=Token;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=r;const n=new Set(Object.keys(r));function isNode(e){const t=e===null||e===void 0?void 0:e.kind;return typeof t==="string"&&n.has(t)}var s;t.OperationTypeNode=s;(function(e){e["QUERY"]="query";e["MUTATION"]="mutation";e["SUBSCRIPTION"]="subscription"})(s||(t.OperationTypeNode=s={}))},77508:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringLines=dedentBlockStringLines;t.isPrintableAsBlockString=isPrintableAsBlockString;t.printBlockString=printBlockString;var n=r(83271);function dedentBlockStringLines(e){var t;let r=Number.MAX_SAFE_INTEGER;let n=null;let s=-1;for(let t=0;tt===0?e:e.slice(r))).slice((t=n)!==null&&t!==void 0?t:0,s+1)}function leadingWhitespace(e){let t=0;while(t1&&s.slice(1).every((e=>e.length===0||(0,n.isWhiteSpace)(e.charCodeAt(0))));const a=r.endsWith('\\"""');const c=e.endsWith('"')&&!a;const u=e.endsWith("\\");const A=c||u;const l=!(t!==null&&t!==void 0&&t.minimize)&&(!o||e.length>70||A||i||a);let d="";const p=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));if(l&&!p||i){d+="\n"}d+=r;if(l||A){d+="\n"}return'"""'+d+'"""'}},83271:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isDigit=isDigit;t.isLetter=isLetter;t.isNameContinue=isNameContinue;t.isNameStart=isNameStart;t.isWhiteSpace=isWhiteSpace;function isWhiteSpace(e){return e===9||e===32}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||e===95}function isNameContinue(e){return isLetter(e)||isDigit(e)||e===95}},22582:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r;t.DirectiveLocation=r;(function(e){e["QUERY"]="QUERY";e["MUTATION"]="MUTATION";e["SUBSCRIPTION"]="SUBSCRIPTION";e["FIELD"]="FIELD";e["FRAGMENT_DEFINITION"]="FRAGMENT_DEFINITION";e["FRAGMENT_SPREAD"]="FRAGMENT_SPREAD";e["INLINE_FRAGMENT"]="INLINE_FRAGMENT";e["VARIABLE_DEFINITION"]="VARIABLE_DEFINITION";e["SCHEMA"]="SCHEMA";e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["FIELD_DEFINITION"]="FIELD_DEFINITION";e["ARGUMENT_DEFINITION"]="ARGUMENT_DEFINITION";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["ENUM_VALUE"]="ENUM_VALUE";e["INPUT_OBJECT"]="INPUT_OBJECT";e["INPUT_FIELD_DEFINITION"]="INPUT_FIELD_DEFINITION"})(r||(t.DirectiveLocation=r={}))},70068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BREAK",{enumerable:true,get:function(){return l.BREAK}});Object.defineProperty(t,"DirectiveLocation",{enumerable:true,get:function(){return g.DirectiveLocation}});Object.defineProperty(t,"Kind",{enumerable:true,get:function(){return i.Kind}});Object.defineProperty(t,"Lexer",{enumerable:true,get:function(){return c.Lexer}});Object.defineProperty(t,"Location",{enumerable:true,get:function(){return d.Location}});Object.defineProperty(t,"OperationTypeNode",{enumerable:true,get:function(){return d.OperationTypeNode}});Object.defineProperty(t,"Source",{enumerable:true,get:function(){return n.Source}});Object.defineProperty(t,"Token",{enumerable:true,get:function(){return d.Token}});Object.defineProperty(t,"TokenKind",{enumerable:true,get:function(){return a.TokenKind}});Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:true,get:function(){return l.getEnterLeaveForKind}});Object.defineProperty(t,"getLocation",{enumerable:true,get:function(){return s.getLocation}});Object.defineProperty(t,"getVisitFn",{enumerable:true,get:function(){return l.getVisitFn}});Object.defineProperty(t,"isConstValueNode",{enumerable:true,get:function(){return p.isConstValueNode}});Object.defineProperty(t,"isDefinitionNode",{enumerable:true,get:function(){return p.isDefinitionNode}});Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:true,get:function(){return p.isExecutableDefinitionNode}});Object.defineProperty(t,"isSelectionNode",{enumerable:true,get:function(){return p.isSelectionNode}});Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:true,get:function(){return p.isTypeDefinitionNode}});Object.defineProperty(t,"isTypeExtensionNode",{enumerable:true,get:function(){return p.isTypeExtensionNode}});Object.defineProperty(t,"isTypeNode",{enumerable:true,get:function(){return p.isTypeNode}});Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:true,get:function(){return p.isTypeSystemDefinitionNode}});Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:true,get:function(){return p.isTypeSystemExtensionNode}});Object.defineProperty(t,"isValueNode",{enumerable:true,get:function(){return p.isValueNode}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseConstValue",{enumerable:true,get:function(){return u.parseConstValue}});Object.defineProperty(t,"parseType",{enumerable:true,get:function(){return u.parseType}});Object.defineProperty(t,"parseValue",{enumerable:true,get:function(){return u.parseValue}});Object.defineProperty(t,"print",{enumerable:true,get:function(){return A.print}});Object.defineProperty(t,"printLocation",{enumerable:true,get:function(){return o.printLocation}});Object.defineProperty(t,"printSourceLocation",{enumerable:true,get:function(){return o.printSourceLocation}});Object.defineProperty(t,"visit",{enumerable:true,get:function(){return l.visit}});Object.defineProperty(t,"visitInParallel",{enumerable:true,get:function(){return l.visitInParallel}});var n=r(40203);var s=r(72245);var o=r(6512);var i=r(11123);var a=r(1743);var c=r(29278);var u=r(14929);var A=r(59936);var l=r(30638);var d=r(22740);var p=r(15480);var g=r(22582)},11123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r;t.Kind=r;(function(e){e["NAME"]="Name";e["DOCUMENT"]="Document";e["OPERATION_DEFINITION"]="OperationDefinition";e["VARIABLE_DEFINITION"]="VariableDefinition";e["SELECTION_SET"]="SelectionSet";e["FIELD"]="Field";e["ARGUMENT"]="Argument";e["FRAGMENT_SPREAD"]="FragmentSpread";e["INLINE_FRAGMENT"]="InlineFragment";e["FRAGMENT_DEFINITION"]="FragmentDefinition";e["VARIABLE"]="Variable";e["INT"]="IntValue";e["FLOAT"]="FloatValue";e["STRING"]="StringValue";e["BOOLEAN"]="BooleanValue";e["NULL"]="NullValue";e["ENUM"]="EnumValue";e["LIST"]="ListValue";e["OBJECT"]="ObjectValue";e["OBJECT_FIELD"]="ObjectField";e["DIRECTIVE"]="Directive";e["NAMED_TYPE"]="NamedType";e["LIST_TYPE"]="ListType";e["NON_NULL_TYPE"]="NonNullType";e["SCHEMA_DEFINITION"]="SchemaDefinition";e["OPERATION_TYPE_DEFINITION"]="OperationTypeDefinition";e["SCALAR_TYPE_DEFINITION"]="ScalarTypeDefinition";e["OBJECT_TYPE_DEFINITION"]="ObjectTypeDefinition";e["FIELD_DEFINITION"]="FieldDefinition";e["INPUT_VALUE_DEFINITION"]="InputValueDefinition";e["INTERFACE_TYPE_DEFINITION"]="InterfaceTypeDefinition";e["UNION_TYPE_DEFINITION"]="UnionTypeDefinition";e["ENUM_TYPE_DEFINITION"]="EnumTypeDefinition";e["ENUM_VALUE_DEFINITION"]="EnumValueDefinition";e["INPUT_OBJECT_TYPE_DEFINITION"]="InputObjectTypeDefinition";e["DIRECTIVE_DEFINITION"]="DirectiveDefinition";e["SCHEMA_EXTENSION"]="SchemaExtension";e["SCALAR_TYPE_EXTENSION"]="ScalarTypeExtension";e["OBJECT_TYPE_EXTENSION"]="ObjectTypeExtension";e["INTERFACE_TYPE_EXTENSION"]="InterfaceTypeExtension";e["UNION_TYPE_EXTENSION"]="UnionTypeExtension";e["ENUM_TYPE_EXTENSION"]="EnumTypeExtension";e["INPUT_OBJECT_TYPE_EXTENSION"]="InputObjectTypeExtension"})(r||(t.Kind=r={}))},29278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Lexer=void 0;t.isPunctuatorTokenKind=isPunctuatorTokenKind;var n=r(89619);var s=r(22740);var o=r(77508);var i=r(83271);var a=r(1743);class Lexer{constructor(e){const t=new s.Token(a.TokenKind.SOF,0,0,0,0);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;const e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){do{if(e.next){e=e.next}else{const t=readNextToken(this,e.end);e.next=t;t.prev=e;e=t}}while(e.kind===a.TokenKind.COMMENT)}return e}}t.Lexer=Lexer;function isPunctuatorTokenKind(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){const r=e.source.body.codePointAt(t);if(r===undefined){return a.TokenKind.EOF}else if(r>=32&&r<=126){const e=String.fromCodePoint(r);return e==='"'?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,r,n,o){const i=e.line;const a=1+r-e.lineStart;return new s.Token(t,r,n,i,a,o)}function readNextToken(e,t){const r=e.source.body;const s=r.length;let o=t;while(o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readEscapedCharacter(e,t){const r=e.source.body;const s=r.charCodeAt(t+1);switch(s){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function readBlockString(e,t){const r=e.source.body;const s=r.length;let i=e.lineStart;let c=t+3;let u=c;let A="";const l=[];while(c{Object.defineProperty(t,"__esModule",{value:true});t.getLocation=getLocation;var n=r(33650);const s=/\r\n|[\n\r]/g;function getLocation(e,t){let r=0;let o=1;for(const i of e.body.matchAll(s)){typeof i.index==="number"||(0,n.invariant)(false);if(i.index>=t){break}r=i.index+i[0].length;o+=1}return{line:o,column:t+1-r}}},14929:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;t.parse=parse;t.parseConstValue=parseConstValue;t.parseType=parseType;t.parseValue=parseValue;var n=r(89619);var s=r(22740);var o=r(22582);var i=r(11123);var a=r(29278);var c=r(40203);var u=r(1743);function parse(e,t){const r=new Parser(e,t);return r.parseDocument()}function parseValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseValueLiteral(false);r.expectToken(u.TokenKind.EOF);return n}function parseConstValue(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseConstValueLiteral();r.expectToken(u.TokenKind.EOF);return n}function parseType(e,t){const r=new Parser(e,t);r.expectToken(u.TokenKind.SOF);const n=r.parseTypeReference();r.expectToken(u.TokenKind.EOF);return n}class Parser{constructor(e,t={}){const r=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(r);this._options=t;this._tokenCounter=0}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:i.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:i.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L)){return this.parseOperationDefinition()}const e=this.peekDescription();const t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.")}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L)){return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:s.OperationTypeNode.QUERY,name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()})}const t=this.parseOperationType();let r;if(this.peek(u.TokenKind.NAME)){r=this.parseName()}return this.node(e,{kind:i.Kind.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return s.OperationTypeNode.QUERY;case"mutation":return s.OperationTypeNode.MUTATION;case"subscription":return s.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:i.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():undefined,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;this.expectToken(u.TokenKind.DOLLAR);return this.node(e,{kind:i.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:i.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token;const t=this.parseName();let r;let n;if(this.expectOptionalToken(u.TokenKind.COLON)){r=t;n=this.parseName()}else{n=t}return this.node(e,{kind:i.Kind.FIELD,alias:r,name:n,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():undefined})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=false){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(true)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(u.TokenKind.NAME)){return this.node(e,{kind:i.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false)})}return this.node(e,{kind:i.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;this.expectKeyword("fragment");if(this._options.allowLegacyFragmentVariables===true){return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}return this.node(e,{kind:i.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:this.advanceLexer();return this.node(t,{kind:i.Kind.INT,value:t.value});case u.TokenKind.FLOAT:this.advanceLexer();return this.node(t,{kind:i.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:this.advanceLexer();switch(t.value){case"true":return this.node(t,{kind:i.Kind.BOOLEAN,value:true});case"false":return this.node(t,{kind:i.Kind.BOOLEAN,value:false});case"null":return this.node(t,{kind:i.Kind.NULL});default:return this.node(t,{kind:i.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){this.expectToken(u.TokenKind.DOLLAR);if(this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else{throw this.unexpected(t)}}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(true)}parseStringLiteral(){const e=this._lexer.token;this.advanceLexer();return this.node(e,{kind:i.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){const item=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:i.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,item,u.TokenKind.BRACKET_R)})}parseObject(e){const item=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:i.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,item,u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token;const r=this.parseName();this.expectToken(u.TokenKind.COLON);return this.node(t,{kind:i.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];while(this.peek(u.TokenKind.AT)){t.push(this.parseDirective(e))}return t}parseConstDirectives(){return this.parseDirectives(true)}parseDirective(e){const t=this._lexer.token;this.expectToken(u.TokenKind.AT);return this.node(t,{kind:i.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R);t=this.node(e,{kind:i.Kind.LIST_TYPE,type:r})}else{t=this.parseNamedType()}if(this.expectOptionalToken(u.TokenKind.BANG)){return this.node(e,{kind:i.Kind.NON_NULL_TYPE,type:t})}return t}parseNamedType(){return this.node(this._lexer.token,{kind:i.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription()){return this.parseStringLiteral()}}parseSchemaDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives();const n=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:i.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token;const t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:i.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("type");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();const n=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const s=this.parseTypeReference();const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseName();this.expectToken(u.TokenKind.COLON);const n=this.parseTypeReference();let s;if(this.expectOptionalToken(u.TokenKind.EQUALS)){s=this.parseConstValueLiteral()}const o=this.parseConstDirectives();return this.node(e,{kind:i.Kind.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName();const n=this.parseImplementsInterfaces();const s=this.parseConstDirectives();const o=this.parseFieldsDefinition();return this.node(e,{kind:i.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("union");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseUnionMemberTypes();return this.node(e,{kind:i.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseEnumValuesDefinition();return this.node(e,{kind:i.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:s})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token;const t=this.parseDescription();const r=this.parseEnumValueName();const n=this.parseConstDirectives();return this.node(e,{kind:i.Kind.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null"){throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`)}return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("input");const r=this.parseName();const n=this.parseConstDirectives();const s=this.parseInputFieldsDefinition();return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");const t=this.parseConstDirectives();const r=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(t.length===0&&r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");const t=this.parseName();const r=this.parseConstDirectives();if(r.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");const t=this.parseName();const r=this.parseImplementsInterfaces();const n=this.parseConstDirectives();const s=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&s.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");const t=this.parseName();const r=this.parseConstDirectives();const n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0){throw this.unexpected()}return this.node(e,{kind:i.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token;const t=this.parseDescription();this.expectKeyword("directive");this.expectToken(u.TokenKind.AT);const r=this.parseName();const n=this.parseArgumentDefs();const s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:i.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token;const t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value)){return t}throw this.unexpected(e)}node(e,t){if(this._options.noLocation!==true){t.loc=new s.Location(e,this._lexer.lastToken,this._lexer.source)}return t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return t}throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){const t=this._lexer.token;if(t.kind===e){this.advanceLexer();return true}return false}expectKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer()}else{throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}}expectOptionalKeyword(e){const t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e){this.advanceLexer();return true}return false}unexpected(e){const t=e!==null&&e!==void 0?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];while(!this.expectOptionalToken(r)){n.push(t.call(this))}return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options;const t=this._lexer.advance();if(e!==undefined&&t.kind!==u.TokenKind.EOF){++this._tokenCounter;if(this._tokenCounter>e){throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}}t.Parser=Parser;function getTokenDesc(e){const t=e.value;return getTokenKindDesc(e.kind)+(t!=null?` "${t}"`:"")}function getTokenKindDesc(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},15480:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.isConstValueNode=isConstValueNode;t.isDefinitionNode=isDefinitionNode;t.isExecutableDefinitionNode=isExecutableDefinitionNode;t.isSelectionNode=isSelectionNode;t.isTypeDefinitionNode=isTypeDefinitionNode;t.isTypeExtensionNode=isTypeExtensionNode;t.isTypeNode=isTypeNode;t.isTypeSystemDefinitionNode=isTypeSystemDefinitionNode;t.isTypeSystemExtensionNode=isTypeSystemExtensionNode;t.isValueNode=isValueNode;var n=r(11123);function isDefinitionNode(e){return isExecutableDefinitionNode(e)||isTypeSystemDefinitionNode(e)||isTypeSystemExtensionNode(e)}function isExecutableDefinitionNode(e){return e.kind===n.Kind.OPERATION_DEFINITION||e.kind===n.Kind.FRAGMENT_DEFINITION}function isSelectionNode(e){return e.kind===n.Kind.FIELD||e.kind===n.Kind.FRAGMENT_SPREAD||e.kind===n.Kind.INLINE_FRAGMENT}function isValueNode(e){return e.kind===n.Kind.VARIABLE||e.kind===n.Kind.INT||e.kind===n.Kind.FLOAT||e.kind===n.Kind.STRING||e.kind===n.Kind.BOOLEAN||e.kind===n.Kind.NULL||e.kind===n.Kind.ENUM||e.kind===n.Kind.LIST||e.kind===n.Kind.OBJECT}function isConstValueNode(e){return isValueNode(e)&&(e.kind===n.Kind.LIST?e.values.some(isConstValueNode):e.kind===n.Kind.OBJECT?e.fields.some((e=>isConstValueNode(e.value))):e.kind!==n.Kind.VARIABLE)}function isTypeNode(e){return e.kind===n.Kind.NAMED_TYPE||e.kind===n.Kind.LIST_TYPE||e.kind===n.Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(e){return e.kind===n.Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(e)||e.kind===n.Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(e){return e.kind===n.Kind.SCALAR_TYPE_DEFINITION||e.kind===n.Kind.OBJECT_TYPE_DEFINITION||e.kind===n.Kind.INTERFACE_TYPE_DEFINITION||e.kind===n.Kind.UNION_TYPE_DEFINITION||e.kind===n.Kind.ENUM_TYPE_DEFINITION||e.kind===n.Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(e){return e.kind===n.Kind.SCHEMA_EXTENSION||isTypeExtensionNode(e)}function isTypeExtensionNode(e){return e.kind===n.Kind.SCALAR_TYPE_EXTENSION||e.kind===n.Kind.OBJECT_TYPE_EXTENSION||e.kind===n.Kind.INTERFACE_TYPE_EXTENSION||e.kind===n.Kind.UNION_TYPE_EXTENSION||e.kind===n.Kind.ENUM_TYPE_EXTENSION||e.kind===n.Kind.INPUT_OBJECT_TYPE_EXTENSION}},6512:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printLocation=printLocation;t.printSourceLocation=printSourceLocation;var n=r(72245);function printLocation(e){return printSourceLocation(e.source,(0,n.getLocation)(e.source,e.start))}function printSourceLocation(e,t){const r=e.locationOffset.column-1;const n="".padStart(r)+e.body;const s=t.line-1;const o=e.locationOffset.line-1;const i=t.line+o;const a=t.line===1?r:0;const c=t.column+a;const u=`${e.name}:${i}:${c}\n`;const A=n.split(/\r\n|[\n\r]/g);const l=A[s];if(l.length>120){const e=Math.floor(c/80);const t=c%80;const r=[];for(let e=0;e["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+printPrefixedLines([[`${i-1} |`,A[s-1]],[`${i} |`,l],["|","^".padStart(c)],[`${i+1} |`,A[s+1]]])}function printPrefixedLines(e){const t=e.filter((([e,t])=>t!==undefined));const r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}},69934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.printString=printString;function printString(e){return`"${e.replace(r,escapedReplacer)}"`}const r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return n[e.charCodeAt(0)]}const n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},59936:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.print=print;var n=r(77508);var s=r(69934);var o=r(30638);function print(e){return(0,o.visit)(e,a)}const i=80;const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=wrap("(",join(e.variableDefinitions,", "),")");const r=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+wrap(" = ",r)+wrap(" ",join(n," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:s}){const o=wrap("",e,": ")+t;let a=o+wrap("(",join(r,", "),")");if(a.length>i){a=o+wrap("(\n",indent(join(r,"\n")),"\n)")}return join([a,join(n," "),s]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>join(["...",wrap("on ",e),join(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:s})=>`fragment ${e}${wrap("(",join(r,", "),")")} `+`on ${t} ${wrap("",join(n," ")," ")}`+s},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,s.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>wrap("",e,"\n")+join(["schema",join(t," "),block(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join(["scalar",t,join(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:s})=>wrap("",e,"\n")+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+": "+n+wrap(" ",join(s," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:s})=>wrap("",e,"\n")+join([t+": "+r,wrap("= ",n),join(s," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:s})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(r," & ")),join(n," "),block(s)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>wrap("",e,"\n")+join(["union",t,join(r," "),wrap("= ",join(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>wrap("",e,"\n")+join(["enum",t,join(r," "),block(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>wrap("",e,"\n")+join([t,join(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>wrap("",e,"\n")+join(["input",t,join(r," "),block(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:s})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(r)?wrap("(\n",indent(join(r,"\n")),"\n)"):wrap("(",join(r,", "),")"))+(n?" repeatable":"")+" on "+join(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(r," "),block(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>join(["extend union",e,join(t," "),wrap("= ",join(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>join(["extend enum",e,join(t," "),block(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>join(["extend input",e,join(t," "),block(r)]," ")}};function join(e,t=""){var r;return(r=e===null||e===void 0?void 0:e.filter((e=>e)).join(t))!==null&&r!==void 0?r:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return(t=e===null||e===void 0?void 0:e.some((e=>e.includes("\n"))))!==null&&t!==void 0?t:false}},40203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;t.isSource=isSource;var n=r(65383);var s=r(25742);var o=r(45914);class Source{constructor(e,t="GraphQL request",r={line:1,column:1}){typeof e==="string"||(0,n.devAssert)(false,`Body must be a string. Received: ${(0,s.inspect)(e)}.`);this.body=e;this.name=t;this.locationOffset=r;this.locationOffset.line>0||(0,n.devAssert)(false,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||(0,n.devAssert)(false,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=Source;function isSource(e){return(0,o.instanceOf)(e,Source)}},1743:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r;t.TokenKind=r;(function(e){e["SOF"]="";e["EOF"]="";e["BANG"]="!";e["DOLLAR"]="$";e["AMP"]="&";e["PAREN_L"]="(";e["PAREN_R"]=")";e["SPREAD"]="...";e["COLON"]=":";e["EQUALS"]="=";e["AT"]="@";e["BRACKET_L"]="[";e["BRACKET_R"]="]";e["BRACE_L"]="{";e["PIPE"]="|";e["BRACE_R"]="}";e["NAME"]="Name";e["INT"]="Int";e["FLOAT"]="Float";e["STRING"]="String";e["BLOCK_STRING"]="BlockString";e["COMMENT"]="Comment"})(r||(t.TokenKind=r={}))},30638:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.BREAK=void 0;t.getEnterLeaveForKind=getEnterLeaveForKind;t.getVisitFn=getVisitFn;t.visit=visit;t.visitInParallel=visitInParallel;var n=r(65383);var s=r(25742);var o=r(22740);var i=r(11123);const a=Object.freeze({});t.BREAK=a;function visit(e,t,r=o.QueryDocumentKeys){const c=new Map;for(const e of Object.values(i.Kind)){c.set(e,getEnterLeaveForKind(t,e))}let u=undefined;let A=Array.isArray(e);let l=[e];let d=-1;let p=[];let g=e;let h=undefined;let m=undefined;const E=[];const y=[];do{d++;const e=d===l.length;const i=e&&p.length!==0;if(e){h=y.length===0?undefined:E[E.length-1];g=m;m=y.pop();if(i){if(A){g=g.slice();let e=0;for(const[t,r]of p){const n=t-e;if(r===null){g.splice(n,1);e++}else{g[n]=r}}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of p){g[e]=t}}}d=u.index;l=u.keys;p=u.edits;A=u.inArray;u=u.prev}else if(m){h=A?d:l[d];g=m[h];if(g===null||g===undefined){continue}E.push(h)}let B;if(!Array.isArray(g)){var I,C;(0,o.isNode)(g)||(0,n.devAssert)(false,`Invalid AST Node: ${(0,s.inspect)(g)}.`);const r=e?(I=c.get(g.kind))===null||I===void 0?void 0:I.leave:(C=c.get(g.kind))===null||C===void 0?void 0:C.enter;B=r===null||r===void 0?void 0:r.call(t,g,h,m,E,y);if(B===a){break}if(B===false){if(!e){E.pop();continue}}else if(B!==undefined){p.push([h,B]);if(!e){if((0,o.isNode)(B)){g=B}else{E.pop();continue}}}}if(B===undefined&&i){p.push([h,g])}if(e){E.pop()}else{var b;u={inArray:A,index:d,keys:l,edits:p,prev:u};A=Array.isArray(g);l=A?g:(b=r[g.kind])!==null&&b!==void 0?b:[];d=-1;p=[];if(m){y.push(m)}m=g}}while(u!==undefined);if(p.length!==0){return p[p.length-1][1]}return e}function visitInParallel(e){const t=new Array(e.length).fill(null);const r=Object.create(null);for(const n of Object.values(i.Kind)){let s=false;const o=new Array(e.length).fill(undefined);const i=new Array(e.length).fill(undefined);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.assertEnumValueName=assertEnumValueName;t.assertName=assertName;var n=r(65383);var s=r(15939);var o=r(83271);function assertName(e){e!=null||(0,n.devAssert)(false,"Must provide name.");typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.length===0){throw new s.GraphQLError("Expected name to be a non-empty string.")}for(let t=1;t{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLUnionType=t.GraphQLScalarType=t.GraphQLObjectType=t.GraphQLNonNull=t.GraphQLList=t.GraphQLInterfaceType=t.GraphQLInputObjectType=t.GraphQLEnumType=void 0;t.argsToArgsConfig=argsToArgsConfig;t.assertAbstractType=assertAbstractType;t.assertCompositeType=assertCompositeType;t.assertEnumType=assertEnumType;t.assertInputObjectType=assertInputObjectType;t.assertInputType=assertInputType;t.assertInterfaceType=assertInterfaceType;t.assertLeafType=assertLeafType;t.assertListType=assertListType;t.assertNamedType=assertNamedType;t.assertNonNullType=assertNonNullType;t.assertNullableType=assertNullableType;t.assertObjectType=assertObjectType;t.assertOutputType=assertOutputType;t.assertScalarType=assertScalarType;t.assertType=assertType;t.assertUnionType=assertUnionType;t.assertWrappingType=assertWrappingType;t.defineArguments=defineArguments;t.getNamedType=getNamedType;t.getNullableType=getNullableType;t.isAbstractType=isAbstractType;t.isCompositeType=isCompositeType;t.isEnumType=isEnumType;t.isInputObjectType=isInputObjectType;t.isInputType=isInputType;t.isInterfaceType=isInterfaceType;t.isLeafType=isLeafType;t.isListType=isListType;t.isNamedType=isNamedType;t.isNonNullType=isNonNullType;t.isNullableType=isNullableType;t.isObjectType=isObjectType;t.isOutputType=isOutputType;t.isRequiredArgument=isRequiredArgument;t.isRequiredInputField=isRequiredInputField;t.isScalarType=isScalarType;t.isType=isType;t.isUnionType=isUnionType;t.isWrappingType=isWrappingType;t.resolveObjMapThunk=resolveObjMapThunk;t.resolveReadonlyArrayThunk=resolveReadonlyArrayThunk;var n=r(65383);var s=r(41353);var o=r(86588);var i=r(25742);var a=r(45914);var c=r(20892);var u=r(37579);var A=r(3166);var l=r(65719);var d=r(47904);var p=r(87104);var g=r(15939);var h=r(11123);var m=r(59936);var E=r(35470);var y=r(58337);function isType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)||isListType(e)||isNonNullType(e)}function assertType(e){if(!isType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`)}return e}function isScalarType(e){return(0,a.instanceOf)(e,GraphQLScalarType)}function assertScalarType(e){if(!isScalarType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Scalar type.`)}return e}function isObjectType(e){return(0,a.instanceOf)(e,GraphQLObjectType)}function assertObjectType(e){if(!isObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Object type.`)}return e}function isInterfaceType(e){return(0,a.instanceOf)(e,GraphQLInterfaceType)}function assertInterfaceType(e){if(!isInterfaceType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Interface type.`)}return e}function isUnionType(e){return(0,a.instanceOf)(e,GraphQLUnionType)}function assertUnionType(e){if(!isUnionType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Union type.`)}return e}function isEnumType(e){return(0,a.instanceOf)(e,GraphQLEnumType)}function assertEnumType(e){if(!isEnumType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Enum type.`)}return e}function isInputObjectType(e){return(0,a.instanceOf)(e,GraphQLInputObjectType)}function assertInputObjectType(e){if(!isInputObjectType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Input Object type.`)}return e}function isListType(e){return(0,a.instanceOf)(e,GraphQLList)}function assertListType(e){if(!isListType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL List type.`)}return e}function isNonNullType(e){return(0,a.instanceOf)(e,GraphQLNonNull)}function assertNonNullType(e){if(!isNonNullType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL Non-Null type.`)}return e}function isInputType(e){return isScalarType(e)||isEnumType(e)||isInputObjectType(e)||isWrappingType(e)&&isInputType(e.ofType)}function assertInputType(e){if(!isInputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL input type.`)}return e}function isOutputType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isWrappingType(e)&&isOutputType(e.ofType)}function assertOutputType(e){if(!isOutputType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL output type.`)}return e}function isLeafType(e){return isScalarType(e)||isEnumType(e)}function assertLeafType(e){if(!isLeafType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL leaf type.`)}return e}function isCompositeType(e){return isObjectType(e)||isInterfaceType(e)||isUnionType(e)}function assertCompositeType(e){if(!isCompositeType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL composite type.`)}return e}function isAbstractType(e){return isInterfaceType(e)||isUnionType(e)}function assertAbstractType(e){if(!isAbstractType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL abstract type.`)}return e}class GraphQLList{constructor(e){isType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}t.GraphQLList=GraphQLList;class GraphQLNonNull{constructor(e){isNullableType(e)||(0,n.devAssert)(false,`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`);this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}t.GraphQLNonNull=GraphQLNonNull;function isWrappingType(e){return isListType(e)||isNonNullType(e)}function assertWrappingType(e){if(!isWrappingType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL wrapping type.`)}return e}function isNullableType(e){return isType(e)&&!isNonNullType(e)}function assertNullableType(e){if(!isNullableType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL nullable type.`)}return e}function getNullableType(e){if(e){return isNonNullType(e)?e.ofType:e}}function isNamedType(e){return isScalarType(e)||isObjectType(e)||isInterfaceType(e)||isUnionType(e)||isEnumType(e)||isInputObjectType(e)}function assertNamedType(e){if(!isNamedType(e)){throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL named type.`)}return e}function getNamedType(e){if(e){let t=e;while(isWrappingType(t)){t=t.ofType}return t}}function resolveReadonlyArrayThunk(e){return typeof e==="function"?e():e}function resolveObjMapThunk(e){return typeof e==="function"?e():e}class GraphQLScalarType{constructor(e){var t,r,s,a;const c=(t=e.parseValue)!==null&&t!==void 0?t:o.identityFunc;this.name=(0,y.assertName)(e.name);this.description=e.description;this.specifiedByURL=e.specifiedByURL;this.serialize=(r=e.serialize)!==null&&r!==void 0?r:o.identityFunc;this.parseValue=c;this.parseLiteral=(s=e.parseLiteral)!==null&&s!==void 0?s:(e,t)=>c((0,E.valueFromASTUntyped)(e,t));this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[];e.specifiedByURL==null||typeof e.specifiedByURL==="string"||(0,n.devAssert)(false,`${this.name} must provide "specifiedByURL" as a string, `+`but got: ${(0,i.inspect)(e.specifiedByURL)}.`);e.serialize==null||typeof e.serialize==="function"||(0,n.devAssert)(false,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`);if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||(0,n.devAssert)(false,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLScalarType=GraphQLScalarType;class GraphQLObjectType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=()=>defineFieldMap(e);this._interfaces=()=>defineInterfaces(e);e.isTypeOf==null||typeof e.isTypeOf==="function"||(0,n.devAssert)(false,`${this.name} must provide "isTypeOf" as a function, `+`but got: ${(0,i.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLObjectType=GraphQLObjectType;function defineInterfaces(e){var t;const r=resolveReadonlyArrayThunk((t=e.interfaces)!==null&&t!==void 0?t:[]);Array.isArray(r)||(0,n.devAssert)(false,`${e.name} interfaces must be an Array or a function which returns an Array.`);return r}function defineFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{var s;isPlainObj(t)||(0,n.devAssert)(false,`${e.name}.${r} field config must be an object.`);t.resolve==null||typeof t.resolve==="function"||(0,n.devAssert)(false,`${e.name}.${r} field resolver must be a function if `+`provided, but got: ${(0,i.inspect)(t.resolve)}.`);const o=(s=t.args)!==null&&s!==void 0?s:{};isPlainObj(o)||(0,n.devAssert)(false,`${e.name}.${r} args must be an object with argument names as keys.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,args:defineArguments(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function defineArguments(e){return Object.entries(e).map((([e,t])=>({name:(0,y.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode})))}function isPlainObj(e){return(0,c.isObjectLike)(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return(0,l.mapValue)(e,(e=>({description:e.description,type:e.type,args:argsToArgsConfig(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function argsToArgsConfig(e){return(0,A.keyValMap)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function isRequiredArgument(e){return isNonNullType(e.type)&&e.defaultValue===undefined}class GraphQLInterfaceType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._fields=defineFieldMap.bind(undefined,e);this._interfaces=defineInterfaces.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}getInterfaces(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInterfaceType=GraphQLInterfaceType;class GraphQLUnionType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.resolveType=e.resolveType;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._types=defineTypes.bind(undefined,e);e.resolveType==null||typeof e.resolveType==="function"||(0,n.devAssert)(false,`${this.name} must provide "resolveType" as a function, `+`but got: ${(0,i.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function"){this._types=this._types()}return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLUnionType=GraphQLUnionType;function defineTypes(e){const t=resolveReadonlyArrayThunk(e.types);Array.isArray(t)||(0,n.devAssert)(false,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`);return t}class GraphQLEnumType{constructor(e){var t;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._values=typeof e.values==="function"?e.values:defineEnumValues(this.name,e.values);this._valueLookup=null;this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function"){this._values=defineEnumValues(this.name,this._values())}return this._values}getValue(e){if(this._nameLookup===null){this._nameLookup=(0,u.keyMap)(this.getValues(),(e=>e.name))}return this._nameLookup[e]}serialize(e){if(this._valueLookup===null){this._valueLookup=new Map(this.getValues().map((e=>[e.value,e])))}const t=this._valueLookup.get(e);if(t===undefined){throw new g.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,i.inspect)(e)}`)}return t.name}parseValue(e){if(typeof e!=="string"){const t=(0,i.inspect)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+didYouMeanEnumValue(this,t))}const t=this.getValue(e);if(t==null){throw new g.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,e))}return t.value}parseLiteral(e,t){if(e.kind!==h.Kind.ENUM){const t=(0,m.print)(e);throw new g.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+didYouMeanEnumValue(this,t),{nodes:e})}const r=this.getValue(e.value);if(r==null){const t=(0,m.print)(e);throw new g.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+didYouMeanEnumValue(this,t),{nodes:e})}return r.value}toConfig(){const e=(0,A.keyValMap)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLEnumType=GraphQLEnumType;function didYouMeanEnumValue(e,t){const r=e.getValues().map((e=>e.name));const n=(0,d.suggestionList)(t,r);return(0,s.didYouMean)("the enum value",n)}function defineEnumValues(e,t){isPlainObj(t)||(0,n.devAssert)(false,`${e} values must be an object with value names as keys.`);return Object.entries(t).map((([t,r])=>{isPlainObj(r)||(0,n.devAssert)(false,`${e}.${t} must refer to an object with a "value" key `+`representing an internal value but got: ${(0,i.inspect)(r)}.`);return{name:(0,y.assertEnumValueName)(t),description:r.description,value:r.value!==undefined?r.value:t,deprecationReason:r.deprecationReason,extensions:(0,p.toObjMap)(r.extensions),astNode:r.astNode}}))}class GraphQLInputObjectType{constructor(e){var t,r;this.name=(0,y.assertName)(e.name);this.description=e.description;this.extensions=(0,p.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this.isOneOf=(r=e.isOneOf)!==null&&r!==void 0?r:false;this._fields=defineInputFieldMap.bind(undefined,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields}toConfig(){const e=(0,l.mapValue)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}t.GraphQLInputObjectType=GraphQLInputObjectType;function defineInputFieldMap(e){const t=resolveObjMapThunk(e.fields);isPlainObj(t)||(0,n.devAssert)(false,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`);return(0,l.mapValue)(t,((t,r)=>{!("resolve"in t)||(0,n.devAssert)(false,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`);return{name:(0,y.assertName)(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,p.toObjMap)(t.extensions),astNode:t.astNode}}))}function isRequiredInputField(e){return isNonNullType(e.type)&&e.defaultValue===undefined}},21058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSpecifiedByDirective=t.GraphQLSkipDirective=t.GraphQLOneOfDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=void 0;t.assertDirective=assertDirective;t.isDirective=isDirective;t.isSpecifiedDirective=isSpecifiedDirective;t.specifiedDirectives=void 0;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22582);var u=r(58337);var A=r(84169);var l=r(93571);function isDirective(e){return(0,o.instanceOf)(e,GraphQLDirective)}function assertDirective(e){if(!isDirective(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL directive.`)}return e}class GraphQLDirective{constructor(e){var t,r;this.name=(0,u.assertName)(e.name);this.description=e.description;this.locations=e.locations;this.isRepeatable=(t=e.isRepeatable)!==null&&t!==void 0?t:false;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;Array.isArray(e.locations)||(0,n.devAssert)(false,`@${e.name} locations must be an Array.`);const s=(r=e.args)!==null&&r!==void 0?r:{};(0,i.isObjectLike)(s)&&!Array.isArray(s)||(0,n.devAssert)(false,`@${e.name} args must be an object with argument names as keys.`);this.args=(0,A.defineArguments)(s)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,A.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}t.GraphQLDirective=GraphQLDirective;const d=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Included when true."}}});t.GraphQLIncludeDirective=d;const p=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.DirectiveLocation.FIELD,c.DirectiveLocation.FRAGMENT_SPREAD,c.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new A.GraphQLNonNull(l.GraphQLBoolean),description:"Skipped when true."}}});t.GraphQLSkipDirective=p;const g="No longer supported";t.DEFAULT_DEPRECATION_REASON=g;const h=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.DirectiveLocation.FIELD_DEFINITION,c.DirectiveLocation.ARGUMENT_DEFINITION,c.DirectiveLocation.INPUT_FIELD_DEFINITION,c.DirectiveLocation.ENUM_VALUE],args:{reason:{type:l.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:g}}});t.GraphQLDeprecatedDirective=h;const m=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.DirectiveLocation.SCALAR],args:{url:{type:new A.GraphQLNonNull(l.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});t.GraphQLSpecifiedByDirective=m;const E=new GraphQLDirective({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.DirectiveLocation.INPUT_OBJECT],args:{}});t.GraphQLOneOfDirective=E;const y=Object.freeze([d,p,h,m,E]);t.specifiedDirectives=y;function isSpecifiedDirective(e){return y.some((({name:t})=>t===e.name))}},66618:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:true,get:function(){return o.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(t,"GRAPHQL_MAX_INT",{enumerable:true,get:function(){return i.GRAPHQL_MAX_INT}});Object.defineProperty(t,"GRAPHQL_MIN_INT",{enumerable:true,get:function(){return i.GRAPHQL_MIN_INT}});Object.defineProperty(t,"GraphQLBoolean",{enumerable:true,get:function(){return i.GraphQLBoolean}});Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:true,get:function(){return o.GraphQLDeprecatedDirective}});Object.defineProperty(t,"GraphQLDirective",{enumerable:true,get:function(){return o.GraphQLDirective}});Object.defineProperty(t,"GraphQLEnumType",{enumerable:true,get:function(){return s.GraphQLEnumType}});Object.defineProperty(t,"GraphQLFloat",{enumerable:true,get:function(){return i.GraphQLFloat}});Object.defineProperty(t,"GraphQLID",{enumerable:true,get:function(){return i.GraphQLID}});Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:true,get:function(){return o.GraphQLIncludeDirective}});Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:true,get:function(){return s.GraphQLInputObjectType}});Object.defineProperty(t,"GraphQLInt",{enumerable:true,get:function(){return i.GraphQLInt}});Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:true,get:function(){return s.GraphQLInterfaceType}});Object.defineProperty(t,"GraphQLList",{enumerable:true,get:function(){return s.GraphQLList}});Object.defineProperty(t,"GraphQLNonNull",{enumerable:true,get:function(){return s.GraphQLNonNull}});Object.defineProperty(t,"GraphQLObjectType",{enumerable:true,get:function(){return s.GraphQLObjectType}});Object.defineProperty(t,"GraphQLOneOfDirective",{enumerable:true,get:function(){return o.GraphQLOneOfDirective}});Object.defineProperty(t,"GraphQLScalarType",{enumerable:true,get:function(){return s.GraphQLScalarType}});Object.defineProperty(t,"GraphQLSchema",{enumerable:true,get:function(){return n.GraphQLSchema}});Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:true,get:function(){return o.GraphQLSkipDirective}});Object.defineProperty(t,"GraphQLSpecifiedByDirective",{enumerable:true,get:function(){return o.GraphQLSpecifiedByDirective}});Object.defineProperty(t,"GraphQLString",{enumerable:true,get:function(){return i.GraphQLString}});Object.defineProperty(t,"GraphQLUnionType",{enumerable:true,get:function(){return s.GraphQLUnionType}});Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:true,get:function(){return a.SchemaMetaFieldDef}});Object.defineProperty(t,"TypeKind",{enumerable:true,get:function(){return a.TypeKind}});Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:true,get:function(){return a.TypeMetaFieldDef}});Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:true,get:function(){return a.TypeNameMetaFieldDef}});Object.defineProperty(t,"__Directive",{enumerable:true,get:function(){return a.__Directive}});Object.defineProperty(t,"__DirectiveLocation",{enumerable:true,get:function(){return a.__DirectiveLocation}});Object.defineProperty(t,"__EnumValue",{enumerable:true,get:function(){return a.__EnumValue}});Object.defineProperty(t,"__Field",{enumerable:true,get:function(){return a.__Field}});Object.defineProperty(t,"__InputValue",{enumerable:true,get:function(){return a.__InputValue}});Object.defineProperty(t,"__Schema",{enumerable:true,get:function(){return a.__Schema}});Object.defineProperty(t,"__Type",{enumerable:true,get:function(){return a.__Type}});Object.defineProperty(t,"__TypeKind",{enumerable:true,get:function(){return a.__TypeKind}});Object.defineProperty(t,"assertAbstractType",{enumerable:true,get:function(){return s.assertAbstractType}});Object.defineProperty(t,"assertCompositeType",{enumerable:true,get:function(){return s.assertCompositeType}});Object.defineProperty(t,"assertDirective",{enumerable:true,get:function(){return o.assertDirective}});Object.defineProperty(t,"assertEnumType",{enumerable:true,get:function(){return s.assertEnumType}});Object.defineProperty(t,"assertEnumValueName",{enumerable:true,get:function(){return u.assertEnumValueName}});Object.defineProperty(t,"assertInputObjectType",{enumerable:true,get:function(){return s.assertInputObjectType}});Object.defineProperty(t,"assertInputType",{enumerable:true,get:function(){return s.assertInputType}});Object.defineProperty(t,"assertInterfaceType",{enumerable:true,get:function(){return s.assertInterfaceType}});Object.defineProperty(t,"assertLeafType",{enumerable:true,get:function(){return s.assertLeafType}});Object.defineProperty(t,"assertListType",{enumerable:true,get:function(){return s.assertListType}});Object.defineProperty(t,"assertName",{enumerable:true,get:function(){return u.assertName}});Object.defineProperty(t,"assertNamedType",{enumerable:true,get:function(){return s.assertNamedType}});Object.defineProperty(t,"assertNonNullType",{enumerable:true,get:function(){return s.assertNonNullType}});Object.defineProperty(t,"assertNullableType",{enumerable:true,get:function(){return s.assertNullableType}});Object.defineProperty(t,"assertObjectType",{enumerable:true,get:function(){return s.assertObjectType}});Object.defineProperty(t,"assertOutputType",{enumerable:true,get:function(){return s.assertOutputType}});Object.defineProperty(t,"assertScalarType",{enumerable:true,get:function(){return s.assertScalarType}});Object.defineProperty(t,"assertSchema",{enumerable:true,get:function(){return n.assertSchema}});Object.defineProperty(t,"assertType",{enumerable:true,get:function(){return s.assertType}});Object.defineProperty(t,"assertUnionType",{enumerable:true,get:function(){return s.assertUnionType}});Object.defineProperty(t,"assertValidSchema",{enumerable:true,get:function(){return c.assertValidSchema}});Object.defineProperty(t,"assertWrappingType",{enumerable:true,get:function(){return s.assertWrappingType}});Object.defineProperty(t,"getNamedType",{enumerable:true,get:function(){return s.getNamedType}});Object.defineProperty(t,"getNullableType",{enumerable:true,get:function(){return s.getNullableType}});Object.defineProperty(t,"introspectionTypes",{enumerable:true,get:function(){return a.introspectionTypes}});Object.defineProperty(t,"isAbstractType",{enumerable:true,get:function(){return s.isAbstractType}});Object.defineProperty(t,"isCompositeType",{enumerable:true,get:function(){return s.isCompositeType}});Object.defineProperty(t,"isDirective",{enumerable:true,get:function(){return o.isDirective}});Object.defineProperty(t,"isEnumType",{enumerable:true,get:function(){return s.isEnumType}});Object.defineProperty(t,"isInputObjectType",{enumerable:true,get:function(){return s.isInputObjectType}});Object.defineProperty(t,"isInputType",{enumerable:true,get:function(){return s.isInputType}});Object.defineProperty(t,"isInterfaceType",{enumerable:true,get:function(){return s.isInterfaceType}});Object.defineProperty(t,"isIntrospectionType",{enumerable:true,get:function(){return a.isIntrospectionType}});Object.defineProperty(t,"isLeafType",{enumerable:true,get:function(){return s.isLeafType}});Object.defineProperty(t,"isListType",{enumerable:true,get:function(){return s.isListType}});Object.defineProperty(t,"isNamedType",{enumerable:true,get:function(){return s.isNamedType}});Object.defineProperty(t,"isNonNullType",{enumerable:true,get:function(){return s.isNonNullType}});Object.defineProperty(t,"isNullableType",{enumerable:true,get:function(){return s.isNullableType}});Object.defineProperty(t,"isObjectType",{enumerable:true,get:function(){return s.isObjectType}});Object.defineProperty(t,"isOutputType",{enumerable:true,get:function(){return s.isOutputType}});Object.defineProperty(t,"isRequiredArgument",{enumerable:true,get:function(){return s.isRequiredArgument}});Object.defineProperty(t,"isRequiredInputField",{enumerable:true,get:function(){return s.isRequiredInputField}});Object.defineProperty(t,"isScalarType",{enumerable:true,get:function(){return s.isScalarType}});Object.defineProperty(t,"isSchema",{enumerable:true,get:function(){return n.isSchema}});Object.defineProperty(t,"isSpecifiedDirective",{enumerable:true,get:function(){return o.isSpecifiedDirective}});Object.defineProperty(t,"isSpecifiedScalarType",{enumerable:true,get:function(){return i.isSpecifiedScalarType}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return s.isType}});Object.defineProperty(t,"isUnionType",{enumerable:true,get:function(){return s.isUnionType}});Object.defineProperty(t,"isWrappingType",{enumerable:true,get:function(){return s.isWrappingType}});Object.defineProperty(t,"resolveObjMapThunk",{enumerable:true,get:function(){return s.resolveObjMapThunk}});Object.defineProperty(t,"resolveReadonlyArrayThunk",{enumerable:true,get:function(){return s.resolveReadonlyArrayThunk}});Object.defineProperty(t,"specifiedDirectives",{enumerable:true,get:function(){return o.specifiedDirectives}});Object.defineProperty(t,"specifiedScalarTypes",{enumerable:true,get:function(){return i.specifiedScalarTypes}});Object.defineProperty(t,"validateSchema",{enumerable:true,get:function(){return c.validateSchema}});var n=r(79299);var s=r(84169);var o=r(21058);var i=r(93571);var a=r(10317);var c=r(33902);var u=r(58337)},10317:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionTypes=t.__TypeKind=t.__Type=t.__Schema=t.__InputValue=t.__Field=t.__EnumValue=t.__DirectiveLocation=t.__Directive=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.TypeKind=t.SchemaMetaFieldDef=void 0;t.isIntrospectionType=isIntrospectionType;var n=r(25742);var s=r(33650);var o=r(22582);var i=r(59936);var a=r(48893);var c=r(84169);var u=r(93571);const A=new c.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(p))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.GraphQLNonNull(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(l))),resolve:e=>e.getDirectives()}})});t.__Schema=A;const l=new c.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:e=>e.locations},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}}})});t.__Directive=l;const d=new c.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});t.__DirectiveLocation=d;const p=new c.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new c.GraphQLNonNull(y),resolve(e){if((0,c.isScalarType)(e)){return E.SCALAR}if((0,c.isObjectType)(e)){return E.OBJECT}if((0,c.isInterfaceType)(e)){return E.INTERFACE}if((0,c.isUnionType)(e)){return E.UNION}if((0,c.isEnumType)(e)){return E.ENUM}if((0,c.isInputObjectType)(e)){return E.INPUT_OBJECT}if((0,c.isListType)(e)){return E.LIST}if((0,c.isNonNullType)(e)){return E.NON_NULL}false||(0,s.invariant)(false,`Unexpected type: "${(0,n.inspect)(e)}".`)}},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:undefined},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:undefined},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:undefined},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){return e.getInterfaces()}}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(p)),resolve(e,t,r,{schema:n}){if((0,c.isAbstractType)(e)){return n.getPossibleTypes(e)}}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isEnumType)(e)){const r=e.getValues();return t?r:r.filter((e=>e.deprecationReason==null))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){if((0,c.isInputObjectType)(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>e.deprecationReason==null))}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:undefined},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,c.isInputObjectType)(e)){return e.isOneOf}}}})});t.__Type=p;const g=new c.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:false}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter((e=>e.deprecationReason==null))}},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__Field=g;const h=new c.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new c.GraphQLNonNull(p),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e;const n=(0,a.astFromValue)(r,t);return n?(0,i.print)(n):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__InputValue=h;const m=new c.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});t.__EnumValue=m;var E;t.TypeKind=E;(function(e){e["SCALAR"]="SCALAR";e["OBJECT"]="OBJECT";e["INTERFACE"]="INTERFACE";e["UNION"]="UNION";e["ENUM"]="ENUM";e["INPUT_OBJECT"]="INPUT_OBJECT";e["LIST"]="LIST";e["NON_NULL"]="NON_NULL"})(E||(t.TypeKind=E={}));const y=new c.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:E.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:E.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:E.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:E.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:E.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:E.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:E.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:E.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});t.__TypeKind=y;const I={name:"__schema",type:new c.GraphQLNonNull(A),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.SchemaMetaFieldDef=I;const C={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:undefined,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeMetaFieldDef=C;const b={name:"__typename",type:new c.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:undefined,extensions:Object.create(null),astNode:undefined};t.TypeNameMetaFieldDef=b;const B=Object.freeze([A,l,d,p,g,h,m,y]);t.introspectionTypes=B;function isIntrospectionType(e){return B.some((({name:t})=>e.name===t))}},93571:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLString=t.GraphQLInt=t.GraphQLID=t.GraphQLFloat=t.GraphQLBoolean=t.GRAPHQL_MIN_INT=t.GRAPHQL_MAX_INT=void 0;t.isSpecifiedScalarType=isSpecifiedScalarType;t.specifiedScalarTypes=void 0;var n=r(25742);var s=r(20892);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);const u=2147483647;t.GRAPHQL_MAX_INT=u;const A=-2147483648;t.GRAPHQL_MIN_INT=A;const l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=serializeObject(e);if(typeof t==="boolean"){return t?1:0}let r=t;if(typeof t==="string"&&t!==""){r=Number(t)}if(typeof r!=="number"||!Number.isInteger(r)){throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,n.inspect)(t)}`)}if(r>u||ru||eu||te.name===t))}function serializeObject(e){if((0,s.isObjectLike)(e)){if(typeof e.valueOf==="function"){const t=e.valueOf();if(!(0,s.isObjectLike)(t)){return t}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}},79299:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.GraphQLSchema=void 0;t.assertSchema=assertSchema;t.isSchema=isSchema;var n=r(65383);var s=r(25742);var o=r(45914);var i=r(20892);var a=r(87104);var c=r(22740);var u=r(84169);var A=r(21058);var l=r(10317);function isSchema(e){return(0,o.instanceOf)(e,GraphQLSchema)}function assertSchema(e){if(!isSchema(e)){throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL schema.`)}return e}class GraphQLSchema{constructor(e){var t,r;this.__validationErrors=e.assumeValid===true?[]:undefined;(0,i.isObjectLike)(e)||(0,n.devAssert)(false,"Must provide configuration object.");!e.types||Array.isArray(e.types)||(0,n.devAssert)(false,`"types" must be Array if provided but got: ${(0,s.inspect)(e.types)}.`);!e.directives||Array.isArray(e.directives)||(0,n.devAssert)(false,'"directives" must be Array if provided but got: '+`${(0,s.inspect)(e.directives)}.`);this.description=e.description;this.extensions=(0,a.toObjMap)(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=(t=e.extensionASTNodes)!==null&&t!==void 0?t:[];this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(r=e.directives)!==null&&r!==void 0?r:A.specifiedDirectives;const o=new Set(e.types);if(e.types!=null){for(const t of e.types){o.delete(t);collectReferencedTypes(t,o)}}if(this._queryType!=null){collectReferencedTypes(this._queryType,o)}if(this._mutationType!=null){collectReferencedTypes(this._mutationType,o)}if(this._subscriptionType!=null){collectReferencedTypes(this._subscriptionType,o)}for(const e of this._directives){if((0,A.isDirective)(e)){for(const t of e.args){collectReferencedTypes(t.type,o)}}}collectReferencedTypes(l.__Schema,o);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(const e of o){if(e==null){continue}const t=e.name;t||(0,n.devAssert)(false,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[t]!==undefined){throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`)}this._typeMap[t]=e;if((0,u.isInterfaceType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.interfaces.push(e)}}}else if((0,u.isObjectType)(e)){for(const t of e.getInterfaces()){if((0,u.isInterfaceType)(t)){let r=this._implementationsMap[t.name];if(r===undefined){r=this._implementationsMap[t.name]={objects:[],interfaces:[]}}r.objects.push(e)}}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case c.OperationTypeNode.QUERY:return this.getQueryType();case c.OperationTypeNode.MUTATION:return this.getMutationType();case c.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(r===undefined){r=Object.create(null);if((0,u.isUnionType)(e)){for(const t of e.getTypes()){r[t.name]=true}}else{const t=this.getImplementations(e);for(const e of t.objects){r[e.name]=true}for(const e of t.interfaces){r[e.name]=true}}this._subTypeMap[e.name]=r}return r[t.name]!==undefined}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==undefined}}}t.GraphQLSchema=GraphQLSchema;function collectReferencedTypes(e,t){const r=(0,u.getNamedType)(e);if(!t.has(r)){t.add(r);if((0,u.isUnionType)(r)){for(const e of r.getTypes()){collectReferencedTypes(e,t)}}else if((0,u.isObjectType)(r)||(0,u.isInterfaceType)(r)){for(const e of r.getInterfaces()){collectReferencedTypes(e,t)}for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t);for(const r of e.args){collectReferencedTypes(r.type,t)}}}else if((0,u.isInputObjectType)(r)){for(const e of Object.values(r.getFields())){collectReferencedTypes(e.type,t)}}}return t}},33902:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSchema=assertValidSchema;t.validateSchema=validateSchema;var n=r(25742);var s=r(15939);var o=r(22740);var i=r(46539);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function validateSchema(e){(0,A.assertSchema)(e);if(e.__validationErrors){return e.__validationErrors}const t=new SchemaValidationContext(e);validateRootTypes(t);validateDirectives(t);validateTypes(t);const r=t.getErrors();e.__validationErrors=r;return r}function assertValidSchema(e){const t=validateSchema(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}class SchemaValidationContext{constructor(e){this._errors=[];this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function validateRootTypes(e){const t=e.schema;const r=t.getQueryType();if(!r){e.reportError("Query root type must be provided.",t.astNode)}else if(!(0,a.isObjectType)(r)){var s;e.reportError(`Query root type must be Object type, it cannot be ${(0,n.inspect)(r)}.`,(s=getOperationTypeNode(t,o.OperationTypeNode.QUERY))!==null&&s!==void 0?s:r.astNode)}const i=t.getMutationType();if(i&&!(0,a.isObjectType)(i)){var c;e.reportError("Mutation root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(i)}.`,(c=getOperationTypeNode(t,o.OperationTypeNode.MUTATION))!==null&&c!==void 0?c:i.astNode)}const u=t.getSubscriptionType();if(u&&!(0,a.isObjectType)(u)){var A;e.reportError("Subscription root type must be Object type if provided, it cannot be "+`${(0,n.inspect)(u)}.`,(A=getOperationTypeNode(t,o.OperationTypeNode.SUBSCRIPTION))!==null&&A!==void 0?A:u.astNode)}}function getOperationTypeNode(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return(t=e===null||e===void 0?void 0:e.operationTypes)!==null&&t!==void 0?t:[]})).find((e=>e.operation===t)))===null||r===void 0?void 0:r.type}function validateDirectives(e){for(const r of e.schema.getDirectives()){if(!(0,c.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,n.inspect)(r)}.`,r===null||r===void 0?void 0:r.astNode);continue}validateName(e,r);for(const s of r.args){validateName(e,s);if(!(0,a.isInputType)(s.type)){e.reportError(`The type of @${r.name}(${s.name}:) must be Input Type `+`but got: ${(0,n.inspect)(s.type)}.`,s.astNode)}if((0,a.isRequiredArgument)(s)&&s.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${s.name}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(s.astNode),(t=s.astNode)===null||t===void 0?void 0:t.type])}}}}function validateName(e,t){if(t.name.startsWith("__")){e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}}function validateTypes(e){const t=createInputObjectCircularRefsValidator(e);const r=e.schema.getTypeMap();for(const s of Object.values(r)){if(!(0,a.isNamedType)(s)){e.reportError(`Expected GraphQL named type but got: ${(0,n.inspect)(s)}.`,s.astNode);continue}if(!(0,u.isIntrospectionType)(s)){validateName(e,s)}if((0,a.isObjectType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isInterfaceType)(s)){validateFields(e,s);validateInterfaces(e,s)}else if((0,a.isUnionType)(s)){validateUnionMembers(e,s)}else if((0,a.isEnumType)(s)){validateEnumValues(e,s)}else if((0,a.isInputObjectType)(s)){validateInputFields(e,s);t(s)}}}function validateFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const c of r){validateName(e,c);if(!(0,a.isOutputType)(c.type)){var s;e.reportError(`The type of ${t.name}.${c.name} must be Output Type `+`but got: ${(0,n.inspect)(c.type)}.`,(s=c.astNode)===null||s===void 0?void 0:s.type)}for(const r of c.args){const s=r.name;validateName(e,r);if(!(0,a.isInputType)(r.type)){var o;e.reportError(`The type of ${t.name}.${c.name}(${s}:) must be Input `+`Type but got: ${(0,n.inspect)(r.type)}.`,(o=r.astNode)===null||o===void 0?void 0:o.type)}if((0,a.isRequiredArgument)(r)&&r.deprecationReason!=null){var i;e.reportError(`Required argument ${t.name}.${c.name}(${s}:) cannot be deprecated.`,[getDeprecatedDirectiveNode(r.astNode),(i=r.astNode)===null||i===void 0?void 0:i.type])}}}}function validateInterfaces(e,t){const r=Object.create(null);for(const s of t.getInterfaces()){if(!(0,a.isInterfaceType)(s)){e.reportError(`Type ${(0,n.inspect)(t)} must only implement Interface types, `+`it cannot implement ${(0,n.inspect)(s)}.`,getAllImplementsInterfaceNodes(t,s));continue}if(t===s){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,getAllImplementsInterfaceNodes(t,s));continue}if(r[s.name]){e.reportError(`Type ${t.name} can only implement ${s.name} once.`,getAllImplementsInterfaceNodes(t,s));continue}r[s.name]=true;validateTypeImplementsAncestors(e,t,s);validateTypeImplementsInterface(e,t,s)}}function validateTypeImplementsInterface(e,t,r){const s=t.getFields();for(const l of Object.values(r.getFields())){const d=l.name;const p=s[d];if(!p){e.reportError(`Interface field ${r.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,i.isTypeSubTypeOf)(e.schema,p.type,l.type)){var o,c;e.reportError(`Interface field ${r.name}.${d} expects type `+`${(0,n.inspect)(l.type)} but ${t.name}.${d} `+`is type ${(0,n.inspect)(p.type)}.`,[(o=l.astNode)===null||o===void 0?void 0:o.type,(c=p.astNode)===null||c===void 0?void 0:c.type])}for(const s of l.args){const o=s.name;const a=p.args.find((e=>e.name===o));if(!a){e.reportError(`Interface field argument ${r.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[s.astNode,p.astNode]);continue}if(!(0,i.isEqualType)(s.type,a.type)){var u,A;e.reportError(`Interface field argument ${r.name}.${d}(${o}:) `+`expects type ${(0,n.inspect)(s.type)} but `+`${t.name}.${d}(${o}:) is type `+`${(0,n.inspect)(a.type)}.`,[(u=s.astNode)===null||u===void 0?void 0:u.type,(A=a.astNode)===null||A===void 0?void 0:A.type])}}for(const n of p.args){const s=n.name;const o=l.args.find((e=>e.name===s));if(!o&&(0,a.isRequiredArgument)(n)){e.reportError(`Object field ${t.name}.${d} includes required argument ${s} that is missing from the Interface field ${r.name}.${d}.`,[n.astNode,l.astNode])}}}}function validateTypeImplementsAncestors(e,t,r){const n=t.getInterfaces();for(const s of r.getInterfaces()){if(!n.includes(s)){e.reportError(s===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${s.name} because it is implemented by ${r.name}.`,[...getAllImplementsInterfaceNodes(r,s),...getAllImplementsInterfaceNodes(t,r)])}}}function validateUnionMembers(e,t){const r=t.getTypes();if(r.length===0){e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes])}const s=Object.create(null);for(const o of r){if(s[o.name]){e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,getUnionMemberTypeNodes(t,o.name));continue}s[o.name]=true;if(!(0,a.isObjectType)(o)){e.reportError(`Union type ${t.name} can only include Object types, `+`it cannot include ${(0,n.inspect)(o)}.`,getUnionMemberTypeNodes(t,String(o)))}}}function validateEnumValues(e,t){const r=t.getValues();if(r.length===0){e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes])}for(const t of r){validateName(e,t)}}function validateInputFields(e,t){const r=Object.values(t.getFields());if(r.length===0){e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes])}for(const i of r){validateName(e,i);if(!(0,a.isInputType)(i.type)){var s;e.reportError(`The type of ${t.name}.${i.name} must be Input Type `+`but got: ${(0,n.inspect)(i.type)}.`,(s=i.astNode)===null||s===void 0?void 0:s.type)}if((0,a.isRequiredInputField)(i)&&i.deprecationReason!=null){var o;e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[getDeprecatedDirectiveNode(i.astNode),(o=i.astNode)===null||o===void 0?void 0:o.type])}if(t.isOneOf){validateOneOfInputObjectField(t,i,e)}}}function validateOneOfInputObjectField(e,t,r){if((0,a.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}if(t.defaultValue!==undefined){r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}}function createInputObjectCircularRefsValidator(e){const t=Object.create(null);const r=[];const n=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(s){if(t[s.name]){return}t[s.name]=true;n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o){if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const s=t.type.ofType;const o=n[s.name];r.push(t);if(o===undefined){detectCycleRecursive(s)}else{const t=r.slice(o);const n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}}n[s.name]=undefined}}function getAllImplementsInterfaceNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.interfaces)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t.name))}function getUnionMemberTypeNodes(e,t){const{astNode:r,extensionASTNodes:n}=e;const s=r!=null?[r,...n]:n;return s.flatMap((e=>{var t;return(t=e.types)!==null&&t!==void 0?t:[]})).filter((e=>e.name.value===t))}function getDeprecatedDirectiveNode(e){var t;return e===null||e===void 0?void 0:(t=e.directives)===null||t===void 0?void 0:t.find((e=>e.name.value===c.GraphQLDeprecatedDirective.name))}},85e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TypeInfo=void 0;t.visitWithTypeInfo=visitWithTypeInfo;var n=r(22740);var s=r(11123);var o=r(30638);var i=r(84169);var a=r(10317);var c=r(76738);class TypeInfo{constructor(e,t,r){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=r!==null&&r!==void 0?r:getFieldDef;if(t){if((0,i.isInputType)(t)){this._inputTypeStack.push(t)}if((0,i.isCompositeType)(t)){this._parentTypeStack.push(t)}if((0,i.isOutputType)(t)){this._typeStack.push(t)}}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}}getParentType(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}}getInputType(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}}getParentInputType(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}}getFieldDef(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}}getDefaultValue(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case s.Kind.SELECTION_SET:{const e=(0,i.getNamedType)(this.getType());this._parentTypeStack.push((0,i.isCompositeType)(e)?e:undefined);break}case s.Kind.FIELD:{const r=this.getParentType();let n;let s;if(r){n=this._getFieldDef(t,r,e);if(n){s=n.type}}this._fieldDefStack.push(n);this._typeStack.push((0,i.isOutputType)(s)?s:undefined);break}case s.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case s.Kind.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push((0,i.isObjectType)(r)?r:undefined);break}case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:{const r=e.typeCondition;const n=r?(0,c.typeFromAST)(t,r):(0,i.getNamedType)(this.getType());this._typeStack.push((0,i.isOutputType)(n)?n:undefined);break}case s.Kind.VARIABLE_DEFINITION:{const r=(0,c.typeFromAST)(t,e.type);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ARGUMENT:{var r;let t;let n;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();if(s){t=s.args.find((t=>t.name===e.name.value));if(t){n=t.type}}this._argument=t;this._defaultValueStack.push(t?t.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(n)?n:undefined);break}case s.Kind.LIST:{const e=(0,i.getNullableType)(this.getInputType());const t=(0,i.isListType)(e)?e.ofType:e;this._defaultValueStack.push(undefined);this._inputTypeStack.push((0,i.isInputType)(t)?t:undefined);break}case s.Kind.OBJECT_FIELD:{const t=(0,i.getNamedType)(this.getInputType());let r;let n;if((0,i.isInputObjectType)(t)){n=t.getFields()[e.name.value];if(n){r=n.type}}this._defaultValueStack.push(n?n.defaultValue:undefined);this._inputTypeStack.push((0,i.isInputType)(r)?r:undefined);break}case s.Kind.ENUM:{const t=(0,i.getNamedType)(this.getInputType());let r;if((0,i.isEnumType)(t)){r=t.getValue(e.value)}this._enumValue=r;break}default:}}leave(e){switch(e.kind){case s.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case s.Kind.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case s.Kind.DIRECTIVE:this._directive=null;break;case s.Kind.OPERATION_DEFINITION:case s.Kind.INLINE_FRAGMENT:case s.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case s.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case s.Kind.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.LIST:case s.Kind.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case s.Kind.ENUM:this._enumValue=null;break;default:}}}t.TypeInfo=TypeInfo;function getFieldDef(e,t,r){const n=r.name.value;if(n===a.SchemaMetaFieldDef.name&&e.getQueryType()===t){return a.SchemaMetaFieldDef}if(n===a.TypeMetaFieldDef.name&&e.getQueryType()===t){return a.TypeMetaFieldDef}if(n===a.TypeNameMetaFieldDef.name&&(0,i.isCompositeType)(t)){return a.TypeNameMetaFieldDef}if((0,i.isObjectType)(t)||(0,i.isInterfaceType)(t)){return t.getFields()[n]}}function visitWithTypeInfo(e,t){return{enter(...r){const s=r[0];e.enter(s);const i=(0,o.getEnterLeaveForKind)(t,s.kind).enter;if(i){const o=i.apply(t,r);if(o!==undefined){e.leave(s);if((0,n.isNode)(o)){e.enter(o)}}return o}},leave(...r){const n=r[0];const s=(0,o.getEnterLeaveForKind)(t,n.kind).leave;let i;if(s){i=s.apply(t,r)}e.leave(n);return i}}}},60873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidName=assertValidName;t.isValidNameError=isValidNameError;var n=r(65383);var s=r(15939);var o=r(58337);function assertValidName(e){const t=isValidNameError(e);if(t){throw t}return e}function isValidNameError(e){typeof e==="string"||(0,n.devAssert)(false,"Expected name to be a string.");if(e.startsWith("__")){return new s.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`)}try{(0,o.assertName)(e)}catch(e){return e}}},48893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.astFromValue=astFromValue;var n=r(25742);var s=r(33650);var o=r(17341);var i=r(20892);var a=r(11123);var c=r(84169);var u=r(93571);function astFromValue(e,t){if((0,c.isNonNullType)(t)){const r=astFromValue(e,t.ofType);if((r===null||r===void 0?void 0:r.kind)===a.Kind.NULL){return null}return r}if(e===null){return{kind:a.Kind.NULL}}if(e===undefined){return null}if((0,c.isListType)(t)){const r=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const n of e){const e=astFromValue(n,r);if(e!=null){t.push(e)}}return{kind:a.Kind.LIST,values:t}}return astFromValue(e,r)}if((0,c.isInputObjectType)(t)){if(!(0,i.isObjectLike)(e)){return null}const r=[];for(const n of Object.values(t.getFields())){const t=astFromValue(e[n.name],n.type);if(t){r.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:n.name},value:t})}}return{kind:a.Kind.OBJECT,fields:r}}if((0,c.isLeafType)(t)){const r=t.serialize(e);if(r==null){return null}if(typeof r==="boolean"){return{kind:a.Kind.BOOLEAN,value:r}}if(typeof r==="number"&&Number.isFinite(r)){const e=String(r);return A.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if(typeof r==="string"){if((0,c.isEnumType)(t)){return{kind:a.Kind.ENUM,value:r}}if(t===u.GraphQLID&&A.test(r)){return{kind:a.Kind.INT,value:r}}return{kind:a.Kind.STRING,value:r}}throw new TypeError(`Cannot convert value to AST: ${(0,n.inspect)(r)}.`)}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}const A=/^-?(?:0|[1-9][0-9]*)$/},69115:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildASTSchema=buildASTSchema;t.buildSchema=buildSchema;var n=r(65383);var s=r(11123);var o=r(14929);var i=r(21058);var a=r(79299);var c=r(77063);var u=r(35487);function buildASTSchema(e,t){e!=null&&e.kind===s.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((t===null||t===void 0?void 0:t.assumeValid)!==true&&(t===null||t===void 0?void 0:t.assumeValidSDL)!==true){(0,c.assertValidSDL)(e)}const r={description:undefined,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:false};const o=(0,u.extendSchemaImpl)(r,e,t);if(o.astNode==null){for(const e of o.types){switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e;break}}}const A=[...o.directives,...i.specifiedDirectives.filter((e=>o.directives.every((t=>t.name!==e.name))))];return new a.GraphQLSchema({...o,directives:A})}function buildSchema(e,t){const r=(0,o.parse)(e,{noLocation:t===null||t===void 0?void 0:t.noLocation,allowLegacyFragmentVariables:t===null||t===void 0?void 0:t.allowLegacyFragmentVariables});return buildASTSchema(r,{assumeValidSDL:t===null||t===void 0?void 0:t.assumeValidSDL,assumeValid:t===null||t===void 0?void 0:t.assumeValid})}},76954:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.buildClientSchema=buildClientSchema;var n=r(65383);var s=r(25742);var o=r(20892);var i=r(3166);var a=r(14929);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(79299);var p=r(46495);function buildClientSchema(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,n.devAssert)(false,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,s.inspect)(e)}.`);const r=e.__schema;const g=(0,i.keyValMap)(r.types,(e=>e.name),(e=>buildType(e)));for(const e of[...l.specifiedScalarTypes,...A.introspectionTypes]){if(g[e.name]){g[e.name]=e}}const h=r.queryType?getObjectType(r.queryType):null;const m=r.mutationType?getObjectType(r.mutationType):null;const E=r.subscriptionType?getObjectType(r.subscriptionType):null;const y=r.directives?r.directives.map(buildDirective):[];return new d.GraphQLSchema({description:r.description,query:h,mutation:m,subscription:E,types:Object.values(g),directives:y,assumeValid:t===null||t===void 0?void 0:t.assumeValid});function getType(e){if(e.kind===A.TypeKind.LIST){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}return new c.GraphQLList(getType(t))}if(e.kind===A.TypeKind.NON_NULL){const t=e.ofType;if(!t){throw new Error("Decorated type deeper than introspection query.")}const r=getType(t);return new c.GraphQLNonNull((0,c.assertNullableType)(r))}return getNamedType(e)}function getNamedType(e){const t=e.name;if(!t){throw new Error(`Unknown type reference: ${(0,s.inspect)(e)}.`)}const r=g[t];if(!r){throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`)}return r}function getObjectType(e){return(0,c.assertObjectType)(getNamedType(e))}function getInterfaceType(e){return(0,c.assertInterfaceType)(getNamedType(e))}function buildType(e){if(e!=null&&e.name!=null&&e.kind!=null){switch(e.kind){case A.TypeKind.SCALAR:return buildScalarDef(e);case A.TypeKind.OBJECT:return buildObjectDef(e);case A.TypeKind.INTERFACE:return buildInterfaceDef(e);case A.TypeKind.UNION:return buildUnionDef(e);case A.TypeKind.ENUM:return buildEnumDef(e);case A.TypeKind.INPUT_OBJECT:return buildInputObjectDef(e)}}const t=(0,s.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)}function buildScalarDef(e){return new c.GraphQLScalarType({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL})}function buildImplementationsList(e){if(e.interfaces===null&&e.kind===A.TypeKind.INTERFACE){return[]}if(!e.interfaces){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(getInterfaceType)}function buildObjectDef(e){return new c.GraphQLObjectType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildInterfaceDef(e){return new c.GraphQLInterfaceType({name:e.name,description:e.description,interfaces:()=>buildImplementationsList(e),fields:()=>buildFieldDefMap(e)})}function buildUnionDef(e){if(!e.possibleTypes){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new c.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(getObjectType)})}function buildEnumDef(e){if(!e.enumValues){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new c.GraphQLEnumType({name:e.name,description:e.description,values:(0,i.keyValMap)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}function buildInputObjectDef(e){if(!e.inputFields){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new c.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>buildInputValueDefMap(e.inputFields),isOneOf:e.isOneOf})}function buildFieldDefMap(e){if(!e.fields){throw new Error(`Introspection result missing fields: ${(0,s.inspect)(e)}.`)}return(0,i.keyValMap)(e.fields,(e=>e.name),buildField)}function buildField(e){const t=getType(e.type);if(!(0,c.isOutputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:buildInputValueDefMap(e.args)}}function buildInputValueDefMap(e){return(0,i.keyValMap)(e,(e=>e.name),buildInputValue)}function buildInputValue(e){const t=getType(e.type);if(!(0,c.isInputType)(t)){const e=(0,s.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=e.defaultValue!=null?(0,p.valueFromAST)((0,a.parseValue)(e.defaultValue),t):undefined;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}function buildDirective(e){if(!e.args){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,s.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:buildInputValueDefMap(e.args)})}}},67572:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.coerceInputValue=coerceInputValue;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(17341);var a=r(20892);var c=r(73155);var u=r(68373);var A=r(47904);var l=r(15939);var d=r(84169);function coerceInputValue(e,t,r=defaultOnError){return coerceInputValueImpl(e,t,r,undefined)}function defaultOnError(e,t,r){let n="Invalid value "+(0,s.inspect)(t);if(e.length>0){n+=` at "value${(0,u.printPathArray)(e)}"`}r.message=n+": "+r.message;throw r}function coerceInputValueImpl(e,t,r,u){if((0,d.isNonNullType)(t)){if(e!=null){return coerceInputValueImpl(e,t.ofType,r,u)}r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected non-nullable type "${(0,s.inspect)(t)}" not to be null.`));return}if(e==null){return null}if((0,d.isListType)(t)){const n=t.ofType;if((0,i.isIterableObject)(e)){return Array.from(e,((e,t)=>{const s=(0,c.addPath)(u,t,undefined);return coerceInputValueImpl(e,n,r,s)}))}return[coerceInputValueImpl(e,n,r,u)]}if((0,d.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}" to be an object.`));return}const o={};const i=t.getFields();for(const n of Object.values(i)){const i=e[n.name];if(i===undefined){if(n.defaultValue!==undefined){o[n.name]=n.defaultValue}else if((0,d.isNonNullType)(n.type)){const t=(0,s.inspect)(n.type);r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${n.name}" of required type "${t}" was not provided.`))}continue}o[n.name]=coerceInputValueImpl(i,n.type,r,(0,c.addPath)(u,n.name,t.name))}for(const s of Object.keys(e)){if(!i[s]){const o=(0,A.suggestionList)(s,Object.keys(t.getFields()));r((0,c.pathToArray)(u),e,new l.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,n.didYouMean)(o)))}}if(t.isOneOf){const n=Object.keys(o);if(n.length!==1){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`))}const s=n[0];const i=o[s];if(i===null){r((0,c.pathToArray)(u).concat(s),i,new l.GraphQLError(`Field "${s}" must be non-null.`))}}return o}if((0,d.isLeafType)(t)){let n;try{n=t.parseValue(e)}catch(n){if(n instanceof l.GraphQLError){r((0,c.pathToArray)(u),e,n)}else{r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}". `+n.message,{originalError:n}))}return}if(n===undefined){r((0,c.pathToArray)(u),e,new l.GraphQLError(`Expected type "${t.name}".`))}return n}false||(0,o.invariant)(false,"Unexpected input type: "+(0,s.inspect)(t))}},15470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.concatAST=concatAST;var n=r(11123);function concatAST(e){const t=[];for(const r of e){t.push(...r.definitions)}return{kind:n.Kind.DOCUMENT,definitions:t}}},35487:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSchema=extendSchema;t.extendSchemaImpl=extendSchemaImpl;var n=r(65383);var s=r(25742);var o=r(33650);var i=r(37579);var a=r(65719);var c=r(11123);var u=r(15480);var A=r(84169);var l=r(21058);var d=r(10317);var p=r(93571);var g=r(79299);var h=r(77063);var m=r(13604);var E=r(46495);function extendSchema(e,t,r){(0,g.assertSchema)(e);t!=null&&t.kind===c.Kind.DOCUMENT||(0,n.devAssert)(false,"Must provide valid Document AST.");if((r===null||r===void 0?void 0:r.assumeValid)!==true&&(r===null||r===void 0?void 0:r.assumeValidSDL)!==true){(0,h.assertValidSDLExtension)(t,e)}const s=e.toConfig();const o=extendSchemaImpl(s,t,r);return s===o?e:new g.GraphQLSchema(o)}function extendSchemaImpl(e,t,r){var n,i,g,h;const m=[];const I=Object.create(null);const C=[];let b;const B=[];for(const e of t.definitions){if(e.kind===c.Kind.SCHEMA_DEFINITION){b=e}else if(e.kind===c.Kind.SCHEMA_EXTENSION){B.push(e)}else if((0,u.isTypeDefinitionNode)(e)){m.push(e)}else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value;const r=I[t];I[t]=r?r.concat([e]):[e]}else if(e.kind===c.Kind.DIRECTIVE_DEFINITION){C.push(e)}}if(Object.keys(I).length===0&&m.length===0&&C.length===0&&B.length===0&&b==null){return e}const Q=Object.create(null);for(const t of e.types){Q[t.name]=extendNamedType(t)}for(const e of m){var T;const t=e.name.value;Q[t]=(T=y[t])!==null&&T!==void 0?T:buildType(e)}const v={query:e.query&&replaceNamedType(e.query),mutation:e.mutation&&replaceNamedType(e.mutation),subscription:e.subscription&&replaceNamedType(e.subscription),...b&&getOperationTypes([b]),...getOperationTypes(B)};return{description:(n=b)===null||n===void 0?void 0:(i=n.description)===null||i===void 0?void 0:i.value,...v,types:Object.values(Q),directives:[...e.directives.map(replaceDirective),...C.map(buildDirective)],extensions:Object.create(null),astNode:(g=b)!==null&&g!==void 0?g:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(B),assumeValid:(h=r===null||r===void 0?void 0:r.assumeValid)!==null&&h!==void 0?h:false};function replaceType(e){if((0,A.isListType)(e)){return new A.GraphQLList(replaceType(e.ofType))}if((0,A.isNonNullType)(e)){return new A.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return Q[e.name]}function replaceDirective(e){const t=e.toConfig();return new l.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,extendArg)})}function extendNamedType(e){if((0,d.isIntrospectionType)(e)||(0,p.isSpecifiedScalarType)(e)){return e}if((0,A.isScalarType)(e)){return extendScalarType(e)}if((0,A.isObjectType)(e)){return extendObjectType(e)}if((0,A.isInterfaceType)(e)){return extendInterfaceType(e)}if((0,A.isUnionType)(e)){return extendUnionType(e)}if((0,A.isEnumType)(e)){return extendEnumType(e)}if((0,A.isInputObjectType)(e)){return extendInputObjectType(e)}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extendInputObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInputObjectType({...r,fields:()=>({...(0,a.mapValue)(r.fields,(e=>({...e,type:replaceType(e.type)}))),...buildInputFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendEnumType(e){var t;const r=e.toConfig();const n=(t=I[e.name])!==null&&t!==void 0?t:[];return new A.GraphQLEnumType({...r,values:{...r.values,...buildEnumValueMap(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendScalarType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];let s=r.specifiedByURL;for(const e of n){var o;s=(o=getSpecifiedByURL(e))!==null&&o!==void 0?o:s}return new A.GraphQLScalarType({...r,specifiedByURL:s,extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendObjectType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLObjectType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendInterfaceType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLInterfaceType({...r,interfaces:()=>[...e.getInterfaces().map(replaceNamedType),...buildInterfaces(n)],fields:()=>({...(0,a.mapValue)(r.fields,extendField),...buildFieldMap(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendUnionType(e){var t;const r=e.toConfig();const n=(t=I[r.name])!==null&&t!==void 0?t:[];return new A.GraphQLUnionType({...r,types:()=>[...e.getTypes().map(replaceNamedType),...buildUnionTypes(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}function extendField(e){return{...e,type:replaceType(e.type),args:e.args&&(0,a.mapValue)(e.args,extendArg)}}function extendArg(e){return{...e,type:replaceType(e.type)}}function getOperationTypes(e){const t={};for(const n of e){var r;const e=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(const r of e){t[r.operation]=getNamedType(r.type)}}return t}function getNamedType(e){var t;const r=e.name.value;const n=(t=y[r])!==null&&t!==void 0?t:Q[r];if(n===undefined){throw new Error(`Unknown type: "${r}".`)}return n}function getWrappedType(e){if(e.kind===c.Kind.LIST_TYPE){return new A.GraphQLList(getWrappedType(e.type))}if(e.kind===c.Kind.NON_NULL_TYPE){return new A.GraphQLNonNull(getWrappedType(e.type))}return getNamedType(e)}function buildDirective(e){var t;return new l.GraphQLDirective({name:e.name.value,description:(t=e.description)===null||t===void 0?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:buildArgumentMap(e.arguments),astNode:e})}function buildFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={type:getWrappedType(r.type),description:(n=r.description)===null||n===void 0?void 0:n.value,args:buildArgumentMap(r.arguments),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildArgumentMap(e){const t=e!==null&&e!==void 0?e:[];const r=Object.create(null);for(const e of t){var n;const t=getWrappedType(e.type);r[e.name.value]={type:t,description:(n=e.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(e.defaultValue,t),deprecationReason:getDeprecationReason(e),astNode:e}}return r}function buildInputFieldMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.fields)!==null&&r!==void 0?r:[];for(const r of e){var n;const e=getWrappedType(r.type);t[r.name.value]={type:e,description:(n=r.description)===null||n===void 0?void 0:n.value,defaultValue:(0,E.valueFromAST)(r.defaultValue,e),deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildEnumValueMap(e){const t=Object.create(null);for(const s of e){var r;const e=(r=s.values)!==null&&r!==void 0?r:[];for(const r of e){var n;t[r.name.value]={description:(n=r.description)===null||n===void 0?void 0:n.value,deprecationReason:getDeprecationReason(r),astNode:r}}}return t}function buildInterfaces(e){return e.flatMap((e=>{var t,r;return(t=(r=e.interfaces)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildUnionTypes(e){return e.flatMap((e=>{var t,r;return(t=(r=e.types)===null||r===void 0?void 0:r.map(getNamedType))!==null&&t!==void 0?t:[]}))}function buildType(e){var t;const r=e.name.value;const n=(t=I[r])!==null&&t!==void 0?t:[];switch(e.kind){case c.Kind.OBJECT_TYPE_DEFINITION:{var s;const t=[e,...n];return new A.GraphQLObjectType({name:r,description:(s=e.description)===null||s===void 0?void 0:s.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...n];return new A.GraphQLInterfaceType({name:r,description:(o=e.description)===null||o===void 0?void 0:o.value,interfaces:()=>buildInterfaces(t),fields:()=>buildFieldMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.ENUM_TYPE_DEFINITION:{var i;const t=[e,...n];return new A.GraphQLEnumType({name:r,description:(i=e.description)===null||i===void 0?void 0:i.value,values:buildEnumValueMap(t),astNode:e,extensionASTNodes:n})}case c.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new A.GraphQLUnionType({name:r,description:(a=e.description)===null||a===void 0?void 0:a.value,types:()=>buildUnionTypes(t),astNode:e,extensionASTNodes:n})}case c.Kind.SCALAR_TYPE_DEFINITION:{var u;return new A.GraphQLScalarType({name:r,description:(u=e.description)===null||u===void 0?void 0:u.value,specifiedByURL:getSpecifiedByURL(e),astNode:e,extensionASTNodes:n})}case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...n];return new A.GraphQLInputObjectType({name:r,description:(l=e.description)===null||l===void 0?void 0:l.value,fields:()=>buildInputFieldMap(t),astNode:e,extensionASTNodes:n,isOneOf:isOneOf(e)})}}}}const y=(0,i.keyMap)([...p.specifiedScalarTypes,...d.introspectionTypes],(e=>e.name));function getDeprecationReason(e){const t=(0,m.getDirectiveValues)(l.GraphQLDeprecatedDirective,e);return t===null||t===void 0?void 0:t.reason}function getSpecifiedByURL(e){const t=(0,m.getDirectiveValues)(l.GraphQLSpecifiedByDirective,e);return t===null||t===void 0?void 0:t.url}function isOneOf(e){return Boolean((0,m.getDirectiveValues)(l.GraphQLOneOfDirective,e))}},37461:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.DangerousChangeType=t.BreakingChangeType=void 0;t.findBreakingChanges=findBreakingChanges;t.findDangerousChanges=findDangerousChanges;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(59936);var a=r(84169);var c=r(93571);var u=r(48893);var A=r(67287);var l;t.BreakingChangeType=l;(function(e){e["TYPE_REMOVED"]="TYPE_REMOVED";e["TYPE_CHANGED_KIND"]="TYPE_CHANGED_KIND";e["TYPE_REMOVED_FROM_UNION"]="TYPE_REMOVED_FROM_UNION";e["VALUE_REMOVED_FROM_ENUM"]="VALUE_REMOVED_FROM_ENUM";e["REQUIRED_INPUT_FIELD_ADDED"]="REQUIRED_INPUT_FIELD_ADDED";e["IMPLEMENTED_INTERFACE_REMOVED"]="IMPLEMENTED_INTERFACE_REMOVED";e["FIELD_REMOVED"]="FIELD_REMOVED";e["FIELD_CHANGED_KIND"]="FIELD_CHANGED_KIND";e["REQUIRED_ARG_ADDED"]="REQUIRED_ARG_ADDED";e["ARG_REMOVED"]="ARG_REMOVED";e["ARG_CHANGED_KIND"]="ARG_CHANGED_KIND";e["DIRECTIVE_REMOVED"]="DIRECTIVE_REMOVED";e["DIRECTIVE_ARG_REMOVED"]="DIRECTIVE_ARG_REMOVED";e["REQUIRED_DIRECTIVE_ARG_ADDED"]="REQUIRED_DIRECTIVE_ARG_ADDED";e["DIRECTIVE_REPEATABLE_REMOVED"]="DIRECTIVE_REPEATABLE_REMOVED";e["DIRECTIVE_LOCATION_REMOVED"]="DIRECTIVE_LOCATION_REMOVED"})(l||(t.BreakingChangeType=l={}));var d;t.DangerousChangeType=d;(function(e){e["VALUE_ADDED_TO_ENUM"]="VALUE_ADDED_TO_ENUM";e["TYPE_ADDED_TO_UNION"]="TYPE_ADDED_TO_UNION";e["OPTIONAL_INPUT_FIELD_ADDED"]="OPTIONAL_INPUT_FIELD_ADDED";e["OPTIONAL_ARG_ADDED"]="OPTIONAL_ARG_ADDED";e["IMPLEMENTED_INTERFACE_ADDED"]="IMPLEMENTED_INTERFACE_ADDED";e["ARG_DEFAULT_VALUE_CHANGE"]="ARG_DEFAULT_VALUE_CHANGE"})(d||(t.DangerousChangeType=d={}));function findBreakingChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in l))}function findDangerousChanges(e,t){return findSchemaChanges(e,t).filter((e=>e.type in d))}function findSchemaChanges(e,t){return[...findTypeChanges(e,t),...findDirectiveChanges(e,t)]}function findDirectiveChanges(e,t){const r=[];const n=diff(e.getDirectives(),t.getDirectives());for(const e of n.removed){r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`})}for(const[e,t]of n.persisted){const n=diff(e.args,t.args);for(const t of n.added){if((0,a.isRequiredArgument)(t)){r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`})}if(e.isRepeatable&&!t.isRepeatable){r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`})}for(const n of e.locations){if(!t.locations.includes(n)){r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}}}return r}function findTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed){r.push({type:l.TYPE_REMOVED,description:(0,c.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`})}for(const[e,t]of n.persisted){if((0,a.isEnumType)(e)&&(0,a.isEnumType)(t)){r.push(...findEnumTypeChanges(e,t))}else if((0,a.isUnionType)(e)&&(0,a.isUnionType)(t)){r.push(...findUnionTypeChanges(e,t))}else if((0,a.isInputObjectType)(e)&&(0,a.isInputObjectType)(t)){r.push(...findInputObjectTypeChanges(e,t))}else if((0,a.isObjectType)(e)&&(0,a.isObjectType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if((0,a.isInterfaceType)(e)&&(0,a.isInterfaceType)(t)){r.push(...findFieldChanges(e,t),...findImplementedInterfacesChanges(e,t))}else if(e.constructor!==t.constructor){r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from `+`${typeKindName(e)} to ${typeKindName(t)}.`})}}return r}function findInputObjectTypeChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added){if((0,a.isRequiredInputField)(t)){r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`})}else{r.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`})}}for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){const n=isChangeSafeForInputObjectFieldOrFieldArg(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findUnionTypeChanges(e,t){const r=[];const n=diff(e.getTypes(),t.getTypes());for(const t of n.added){r.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`})}for(const t of n.removed){r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`})}return r}function findEnumTypeChanges(e,t){const r=[];const n=diff(e.getValues(),t.getValues());for(const t of n.added){r.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`})}for(const t of n.removed){r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`})}return r}function findImplementedInterfacesChanges(e,t){const r=[];const n=diff(e.getInterfaces(),t.getInterfaces());for(const t of n.added){r.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`})}for(const t of n.removed){r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`})}return r}function findFieldChanges(e,t){const r=[];const n=diff(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed){r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`})}for(const[t,s]of n.persisted){r.push(...findArgChanges(e,t,s));const n=isChangeSafeForObjectOrInterfaceField(t.type,s.type);if(!n){r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from `+`${String(t.type)} to ${String(s.type)}.`})}}return r}function findArgChanges(e,t,r){const n=[];const s=diff(t.args,r.args);for(const r of s.removed){n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`})}for(const[r,o]of s.persisted){const s=isChangeSafeForInputObjectFieldOrFieldArg(r.type,o.type);if(!s){n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from `+`${String(r.type)} to ${String(o.type)}.`})}else if(r.defaultValue!==undefined){if(o.defaultValue===undefined){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`})}else{const s=stringifyValue(r.defaultValue,r.type);const i=stringifyValue(o.defaultValue,o.type);if(s!==i){n.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${s} to ${i}.`})}}}}for(const r of s.added){if((0,a.isRequiredArgument)(r)){n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`})}else{n.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`})}}return n}function isChangeSafeForObjectOrInterfaceField(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e.ofType,t.ofType)}return(0,a.isNamedType)(t)&&e.name===t.name||(0,a.isNonNullType)(t)&&isChangeSafeForObjectOrInterfaceField(e,t.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t.ofType)||!(0,a.isNonNullType)(t)&&isChangeSafeForInputObjectFieldOrFieldArg(e.ofType,t)}return(0,a.isNamedType)(t)&&e.name===t.name}function typeKindName(e){if((0,a.isScalarType)(e)){return"a Scalar type"}if((0,a.isObjectType)(e)){return"an Object type"}if((0,a.isInterfaceType)(e)){return"an Interface type"}if((0,a.isUnionType)(e)){return"a Union type"}if((0,a.isEnumType)(e)){return"an Enum type"}if((0,a.isInputObjectType)(e)){return"an Input type"}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function stringifyValue(e,t){const r=(0,u.astFromValue)(e,t);r!=null||(0,s.invariant)(false);return(0,i.print)((0,A.sortValueNode)(r))}function diff(e,t){const r=[];const n=[];const s=[];const i=(0,o.keyMap)(e,(({name:e})=>e));const a=(0,o.keyMap)(t,(({name:e})=>e));for(const t of e){const e=a[t.name];if(e===undefined){n.push(t)}else{s.push([t,e])}}for(const e of t){if(i[e.name]===undefined){r.push(e)}}return{added:r,persisted:s,removed:n}}},30875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getIntrospectionQuery=getIntrospectionQuery;function getIntrospectionQuery(e){const t={descriptions:true,specifiedByUrl:false,directiveIsRepeatable:false,schemaDescription:false,inputValueDeprecation:false,oneOf:false,...e};const r=t.descriptions?"description":"";const n=t.specifiedByUrl?"specifiedByURL":"";const s=t.directiveIsRepeatable?"isRepeatable":"";const o=t.schemaDescription?r:"";function inputDeprecation(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${s}\n locations\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${inputDeprecation("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${inputDeprecation("isDeprecated")}\n ${inputDeprecation("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}},86201:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationAST=getOperationAST;var n=r(11123);function getOperationAST(e,t){let r=null;for(const o of e.definitions){if(o.kind===n.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r){return null}r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t){return o}}}return r}},45017:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getOperationRootType=getOperationRootType;var n=r(15939);function getOperationRootType(e,t){if(t.operation==="query"){const r=e.getQueryType();if(!r){throw new n.GraphQLError("Schema does not define the required query root type.",{nodes:t})}return r}if(t.operation==="mutation"){const r=e.getMutationType();if(!r){throw new n.GraphQLError("Schema is not configured for mutations.",{nodes:t})}return r}if(t.operation==="subscription"){const r=e.getSubscriptionType();if(!r){throw new n.GraphQLError("Schema is not configured for subscriptions.",{nodes:t})}return r}throw new n.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}},47006:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"BreakingChangeType",{enumerable:true,get:function(){return Q.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:true,get:function(){return Q.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:true,get:function(){return m.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:true,get:function(){return B.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:true,get:function(){return h.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:true,get:function(){return c.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:true,get:function(){return a.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:true,get:function(){return c.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:true,get:function(){return E.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:true,get:function(){return y.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:true,get:function(){return b.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:true,get:function(){return u.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:true,get:function(){return Q.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:true,get:function(){return Q.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:true,get:function(){return n.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:true,get:function(){return s.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:true,get:function(){return o.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:true,get:function(){return i.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:true,get:function(){return b.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:true,get:function(){return b.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:true,get:function(){return B.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:true,get:function(){return A.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:true,get:function(){return l.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:true,get:function(){return l.printSchema}});Object.defineProperty(t,"printType",{enumerable:true,get:function(){return l.printType}});Object.defineProperty(t,"separateOperations",{enumerable:true,get:function(){return I.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:true,get:function(){return C.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:true,get:function(){return d.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:true,get:function(){return p.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:true,get:function(){return g.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:true,get:function(){return m.visitWithTypeInfo}});var n=r(30875);var s=r(86201);var o=r(45017);var i=r(15350);var a=r(76954);var c=r(69115);var u=r(35487);var A=r(26071);var l=r(79258);var d=r(76738);var p=r(46495);var g=r(35470);var h=r(48893);var m=r(85e3);var E=r(67572);var y=r(15470);var I=r(46931);var C=r(1096);var b=r(46539);var B=r(60873);var Q=r(37461)},15350:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.introspectionFromSchema=introspectionFromSchema;var n=r(33650);var s=r(14929);var o=r(98923);var i=r(30875);function introspectionFromSchema(e,t){const r={specifiedByUrl:true,directiveIsRepeatable:true,schemaDescription:true,inputValueDeprecation:true,oneOf:true,...t};const a=(0,s.parse)((0,i.getIntrospectionQuery)(r));const c=(0,o.executeSync)({schema:e,document:a});!c.errors&&c.data||(0,n.invariant)(false);return c.data}},26071:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.lexicographicSortSchema=lexicographicSortSchema;var n=r(25742);var s=r(33650);var o=r(3166);var i=r(23428);var a=r(84169);var c=r(21058);var u=r(10317);var A=r(79299);function lexicographicSortSchema(e){const t=e.toConfig();const r=(0,o.keyValMap)(sortByName(t.types),(e=>e.name),sortNamedType);return new A.GraphQLSchema({...t,types:Object.values(r),directives:sortByName(t.directives).map(sortDirective),query:replaceMaybeType(t.query),mutation:replaceMaybeType(t.mutation),subscription:replaceMaybeType(t.subscription)});function replaceType(e){if((0,a.isListType)(e)){return new a.GraphQLList(replaceType(e.ofType))}else if((0,a.isNonNullType)(e)){return new a.GraphQLNonNull(replaceType(e.ofType))}return replaceNamedType(e)}function replaceNamedType(e){return r[e.name]}function replaceMaybeType(e){return e&&replaceNamedType(e)}function sortDirective(e){const t=e.toConfig();return new c.GraphQLDirective({...t,locations:sortBy(t.locations,(e=>e)),args:sortArgs(t.args)})}function sortArgs(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type),args:e.args&&sortArgs(e.args)})))}function sortInputFields(e){return sortObjMap(e,(e=>({...e,type:replaceType(e.type)})))}function sortTypes(e){return sortByName(e).map(replaceNamedType)}function sortNamedType(e){if((0,a.isScalarType)(e)||(0,u.isIntrospectionType)(e)){return e}if((0,a.isObjectType)(e)){const t=e.toConfig();return new a.GraphQLObjectType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isInterfaceType)(e)){const t=e.toConfig();return new a.GraphQLInterfaceType({...t,interfaces:()=>sortTypes(t.interfaces),fields:()=>sortFields(t.fields)})}if((0,a.isUnionType)(e)){const t=e.toConfig();return new a.GraphQLUnionType({...t,types:()=>sortTypes(t.types)})}if((0,a.isEnumType)(e)){const t=e.toConfig();return new a.GraphQLEnumType({...t,values:sortObjMap(t.values,(e=>e))})}if((0,a.isInputObjectType)(e)){const t=e.toConfig();return new a.GraphQLInputObjectType({...t,fields:()=>sortInputFields(t.fields)})}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}}function sortObjMap(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(i.naturalCompare)){r[n]=t(e[n])}return r}function sortByName(e){return sortBy(e,(e=>e.name))}function sortBy(e,t){return e.slice().sort(((e,r)=>{const n=t(e);const s=t(r);return(0,i.naturalCompare)(n,s)}))}},79258:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.printIntrospectionSchema=printIntrospectionSchema;t.printSchema=printSchema;t.printType=printType;var n=r(25742);var s=r(33650);var o=r(77508);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);var A=r(10317);var l=r(93571);var d=r(48893);function printSchema(e){return printFilteredSchema(e,(e=>!(0,u.isSpecifiedDirective)(e)),isDefinedType)}function printIntrospectionSchema(e){return printFilteredSchema(e,u.isSpecifiedDirective,A.isIntrospectionType)}function isDefinedType(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,A.isIntrospectionType)(e)}function printFilteredSchema(e,t,r){const n=e.getDirectives().filter(t);const s=Object.values(e.getTypeMap()).filter(r);return[printSchemaDefinition(e),...n.map((e=>printDirective(e))),...s.map((e=>printType(e)))].filter(Boolean).join("\n\n")}function printSchemaDefinition(e){if(e.description==null&&isSchemaOfCommonNames(e)){return}const t=[];const r=e.getQueryType();if(r){t.push(` query: ${r.name}`)}const n=e.getMutationType();if(n){t.push(` mutation: ${n.name}`)}const s=e.getSubscriptionType();if(s){t.push(` subscription: ${s.name}`)}return printDescription(e)+`schema {\n${t.join("\n")}\n}`}function isSchemaOfCommonNames(e){const t=e.getQueryType();if(t&&t.name!=="Query"){return false}const r=e.getMutationType();if(r&&r.name!=="Mutation"){return false}const n=e.getSubscriptionType();if(n&&n.name!=="Subscription"){return false}return true}function printType(e){if((0,c.isScalarType)(e)){return printScalar(e)}if((0,c.isObjectType)(e)){return printObject(e)}if((0,c.isInterfaceType)(e)){return printInterface(e)}if((0,c.isUnionType)(e)){return printUnion(e)}if((0,c.isEnumType)(e)){return printEnum(e)}if((0,c.isInputObjectType)(e)){return printInputObject(e)}false||(0,s.invariant)(false,"Unexpected type: "+(0,n.inspect)(e))}function printScalar(e){return printDescription(e)+`scalar ${e.name}`+printSpecifiedByURL(e)}function printImplementedInterfaces(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function printObject(e){return printDescription(e)+`type ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printInterface(e){return printDescription(e)+`interface ${e.name}`+printImplementedInterfaces(e)+printFields(e)}function printUnion(e){const t=e.getTypes();const r=t.length?" = "+t.join(" | "):"";return printDescription(e)+"union "+e.name+r}function printEnum(e){const t=e.getValues().map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printDeprecated(e.deprecationReason)));return printDescription(e)+`enum ${e.name}`+printBlock(t)}function printInputObject(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+printInputValue(e)));return printDescription(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+printBlock(t)}function printFields(e){const t=Object.values(e.getFields()).map(((e,t)=>printDescription(e," ",!t)+" "+e.name+printArgs(e.args," ")+": "+String(e.type)+printDeprecated(e.deprecationReason)));return printBlock(t)}function printBlock(e){return e.length!==0?" {\n"+e.join("\n")+"\n}":""}function printArgs(e,t=""){if(e.length===0){return""}if(e.every((e=>!e.description))){return"("+e.map(printInputValue).join(", ")+")"}return"(\n"+e.map(((e,r)=>printDescription(e," "+t,!r)+" "+t+printInputValue(e))).join("\n")+"\n"+t+")"}function printInputValue(e){const t=(0,d.astFromValue)(e.defaultValue,e.type);let r=e.name+": "+String(e.type);if(t){r+=` = ${(0,a.print)(t)}`}return r+printDeprecated(e.deprecationReason)}function printDirective(e){return printDescription(e)+"directive @"+e.name+printArgs(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function printDeprecated(e){if(e==null){return""}if(e!==u.DEFAULT_DEPRECATION_REASON){const t=(0,a.print)({kind:i.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function printSpecifiedByURL(e){if(e.specifiedByURL==null){return""}const t=(0,a.print)({kind:i.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}function printDescription(e,t="",r=true){const{description:n}=e;if(n==null){return""}const s=(0,a.print)({kind:i.Kind.STRING,value:n,block:(0,o.isPrintableAsBlockString)(n)});const c=t&&!r?"\n"+t:t;return c+s.replace(/\n/g,"\n"+t)+"\n"}},46931:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.separateOperations=separateOperations;var n=r(11123);var s=r(30638);function separateOperations(e){const t=[];const r=Object.create(null);for(const s of e.definitions){switch(s.kind){case n.Kind.OPERATION_DEFINITION:t.push(s);break;case n.Kind.FRAGMENT_DEFINITION:r[s.name.value]=collectDependencies(s.selectionSet);break;default:}}const s=Object.create(null);for(const o of t){const t=new Set;for(const e of collectDependencies(o.selectionSet)){collectTransitiveDependencies(t,r,e)}const i=o.name?o.name.value:"";s[i]={kind:n.Kind.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===n.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return s}function collectTransitiveDependencies(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(n!==undefined){for(const r of n){collectTransitiveDependencies(e,t,r)}}}}function collectDependencies(e){const t=[];(0,s.visit)(e,{FragmentSpread(e){t.push(e.name.value)}});return t}},67287:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.sortValueNode=sortValueNode;var n=r(23428);var s=r(11123);function sortValueNode(e){switch(e.kind){case s.Kind.OBJECT:return{...e,fields:sortFields(e.fields)};case s.Kind.LIST:return{...e,values:e.values.map(sortValueNode)};case s.Kind.INT:case s.Kind.FLOAT:case s.Kind.STRING:case s.Kind.BOOLEAN:case s.Kind.NULL:case s.Kind.ENUM:case s.Kind.VARIABLE:return e}}function sortFields(e){return e.map((e=>({...e,value:sortValueNode(e.value)}))).sort(((e,t)=>(0,n.naturalCompare)(e.name.value,t.name.value)))}},1096:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.stripIgnoredCharacters=stripIgnoredCharacters;var n=r(77508);var s=r(29278);var o=r(40203);var i=r(1743);function stripIgnoredCharacters(e){const t=(0,o.isSource)(e)?e:new o.Source(e);const r=t.body;const a=new s.Lexer(t);let c="";let u=false;while(a.advance().kind!==i.TokenKind.EOF){const e=a.token;const t=e.kind;const o=!(0,s.isPunctuatorTokenKind)(e.kind);if(u){if(o||e.kind===i.TokenKind.SPREAD){c+=" "}}const A=r.slice(e.start,e.end);if(t===i.TokenKind.BLOCK_STRING){c+=(0,n.printBlockString)(e.value,{minimize:true})}else{c+=A}u=o}return c}},46539:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.doTypesOverlap=doTypesOverlap;t.isEqualType=isEqualType;t.isTypeSubTypeOf=isTypeSubTypeOf;var n=r(84169);function isEqualType(e,t){if(e===t){return true}if((0,n.isNonNullType)(e)&&(0,n.isNonNullType)(t)){return isEqualType(e.ofType,t.ofType)}if((0,n.isListType)(e)&&(0,n.isListType)(t)){return isEqualType(e.ofType,t.ofType)}return false}function isTypeSubTypeOf(e,t,r){if(t===r){return true}if((0,n.isNonNullType)(r)){if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isNonNullType)(t)){return isTypeSubTypeOf(e,t.ofType,r)}if((0,n.isListType)(r)){if((0,n.isListType)(t)){return isTypeSubTypeOf(e,t.ofType,r.ofType)}return false}if((0,n.isListType)(t)){return false}return(0,n.isAbstractType)(r)&&((0,n.isInterfaceType)(t)||(0,n.isObjectType)(t))&&e.isSubType(r,t)}function doTypesOverlap(e,t,r){if(t===r){return true}if((0,n.isAbstractType)(t)){if((0,n.isAbstractType)(r)){return e.getPossibleTypes(t).some((t=>e.isSubType(r,t)))}return e.isSubType(t,r)}if((0,n.isAbstractType)(r)){return e.isSubType(r,t)}return false}},76738:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.typeFromAST=typeFromAST;var n=r(11123);var s=r(84169);function typeFromAST(e,t){switch(t.kind){case n.Kind.LIST_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLList(r)}case n.Kind.NON_NULL_TYPE:{const r=typeFromAST(e,t.type);return r&&new s.GraphQLNonNull(r)}case n.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},46495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromAST=valueFromAST;var n=r(25742);var s=r(33650);var o=r(37579);var i=r(11123);var a=r(84169);function valueFromAST(e,t,r){if(!e){return}if(e.kind===i.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===undefined){return}const s=r[n];if(s===null&&(0,a.isNonNullType)(t)){return}return s}if((0,a.isNonNullType)(t)){if(e.kind===i.Kind.NULL){return}return valueFromAST(e,t.ofType,r)}if(e.kind===i.Kind.NULL){return null}if((0,a.isListType)(t)){const n=t.ofType;if(e.kind===i.Kind.LIST){const t=[];for(const s of e.values){if(isMissingVariable(s,r)){if((0,a.isNonNullType)(n)){return}t.push(null)}else{const e=valueFromAST(s,n,r);if(e===undefined){return}t.push(e)}}return t}const s=valueFromAST(e,n,r);if(s===undefined){return}return[s]}if((0,a.isInputObjectType)(t)){if(e.kind!==i.Kind.OBJECT){return}const n=Object.create(null);const s=(0,o.keyMap)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=s[e.name];if(!t||isMissingVariable(t.value,r)){if(e.defaultValue!==undefined){n[e.name]=e.defaultValue}else if((0,a.isNonNullType)(e.type)){return}continue}const o=valueFromAST(t.value,e.type,r);if(o===undefined){return}n[e.name]=o}if(t.isOneOf){const e=Object.keys(n);if(e.length!==1){return}if(n[e[0]]===null){return}}return n}if((0,a.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(n===undefined){return}return n}false||(0,s.invariant)(false,"Unexpected input type: "+(0,n.inspect)(t))}function isMissingVariable(e,t){return e.kind===i.Kind.VARIABLE&&(t==null||t[e.name.value]===undefined)}},35470:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.valueFromASTUntyped=valueFromASTUntyped;var n=r(3166);var s=r(11123);function valueFromASTUntyped(e,t){switch(e.kind){case s.Kind.NULL:return null;case s.Kind.INT:return parseInt(e.value,10);case s.Kind.FLOAT:return parseFloat(e.value);case s.Kind.STRING:case s.Kind.ENUM:case s.Kind.BOOLEAN:return e.value;case s.Kind.LIST:return e.values.map((e=>valueFromASTUntyped(e,t)));case s.Kind.OBJECT:return(0,n.keyValMap)(e.fields,(e=>e.name.value),(e=>valueFromASTUntyped(e.value,t)));case s.Kind.VARIABLE:return t===null||t===void 0?void 0:t[e.name.value]}}},18139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationContext=t.SDLValidationContext=t.ASTValidationContext=void 0;var n=r(11123);var s=r(30638);var o=r(85e3);class ASTValidationContext{constructor(e,t){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments){t=this._fragments}else{t=Object.create(null);for(const e of this.getDocument().definitions){if(e.kind===n.Kind.FRAGMENT_DEFINITION){t[e.name.value]=e}}this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let s;while(s=r.pop()){for(const e of s.selections){if(e.kind===n.Kind.FRAGMENT_SPREAD){t.push(e)}else if(e.selectionSet){r.push(e.selectionSet)}}}this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null);const n=[e.selectionSet];let s;while(s=n.pop()){for(const e of this.getFragmentSpreads(s)){const s=e.name.value;if(r[s]!==true){r[s]=true;const e=this.getFragment(s);if(e){t.push(e);n.push(e.selectionSet)}}}}this._recursivelyReferencedFragments.set(e,t)}return t}}t.ASTValidationContext=ASTValidationContext;class SDLValidationContext extends ASTValidationContext{constructor(e,t,r){super(e,r);this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}t.SDLValidationContext=SDLValidationContext;class ValidationContext extends ASTValidationContext{constructor(e,t,r,n){super(t,n);this._schema=e;this._typeInfo=r;this._variableUsages=new Map;this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[];const n=new o.TypeInfo(this._schema);(0,s.visit)(e,(0,o.visitWithTypeInfo)(n,{VariableDefinition:()=>false,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}}));t=r;this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e)){t=t.concat(this.getVariableUsages(r))}this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}t.ValidationContext=ValidationContext},47973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ExecutableDefinitionsRule",{enumerable:true,get:function(){return i.ExecutableDefinitionsRule}});Object.defineProperty(t,"FieldsOnCorrectTypeRule",{enumerable:true,get:function(){return a.FieldsOnCorrectTypeRule}});Object.defineProperty(t,"FragmentsOnCompositeTypesRule",{enumerable:true,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(t,"KnownArgumentNamesRule",{enumerable:true,get:function(){return u.KnownArgumentNamesRule}});Object.defineProperty(t,"KnownDirectivesRule",{enumerable:true,get:function(){return A.KnownDirectivesRule}});Object.defineProperty(t,"KnownFragmentNamesRule",{enumerable:true,get:function(){return l.KnownFragmentNamesRule}});Object.defineProperty(t,"KnownTypeNamesRule",{enumerable:true,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(t,"LoneAnonymousOperationRule",{enumerable:true,get:function(){return p.LoneAnonymousOperationRule}});Object.defineProperty(t,"LoneSchemaDefinitionRule",{enumerable:true,get:function(){return D.LoneSchemaDefinitionRule}});Object.defineProperty(t,"MaxIntrospectionDepthRule",{enumerable:true,get:function(){return F.MaxIntrospectionDepthRule}});Object.defineProperty(t,"NoDeprecatedCustomRule",{enumerable:true,get:function(){return j.NoDeprecatedCustomRule}});Object.defineProperty(t,"NoFragmentCyclesRule",{enumerable:true,get:function(){return g.NoFragmentCyclesRule}});Object.defineProperty(t,"NoSchemaIntrospectionCustomRule",{enumerable:true,get:function(){return V.NoSchemaIntrospectionCustomRule}});Object.defineProperty(t,"NoUndefinedVariablesRule",{enumerable:true,get:function(){return h.NoUndefinedVariablesRule}});Object.defineProperty(t,"NoUnusedFragmentsRule",{enumerable:true,get:function(){return m.NoUnusedFragmentsRule}});Object.defineProperty(t,"NoUnusedVariablesRule",{enumerable:true,get:function(){return E.NoUnusedVariablesRule}});Object.defineProperty(t,"OverlappingFieldsCanBeMergedRule",{enumerable:true,get:function(){return y.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(t,"PossibleFragmentSpreadsRule",{enumerable:true,get:function(){return I.PossibleFragmentSpreadsRule}});Object.defineProperty(t,"PossibleTypeExtensionsRule",{enumerable:true,get:function(){return G.PossibleTypeExtensionsRule}});Object.defineProperty(t,"ProvidedRequiredArgumentsRule",{enumerable:true,get:function(){return C.ProvidedRequiredArgumentsRule}});Object.defineProperty(t,"ScalarLeafsRule",{enumerable:true,get:function(){return b.ScalarLeafsRule}});Object.defineProperty(t,"SingleFieldSubscriptionsRule",{enumerable:true,get:function(){return B.SingleFieldSubscriptionsRule}});Object.defineProperty(t,"UniqueArgumentDefinitionNamesRule",{enumerable:true,get:function(){return M.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(t,"UniqueArgumentNamesRule",{enumerable:true,get:function(){return Q.UniqueArgumentNamesRule}});Object.defineProperty(t,"UniqueDirectiveNamesRule",{enumerable:true,get:function(){return x.UniqueDirectiveNamesRule}});Object.defineProperty(t,"UniqueDirectivesPerLocationRule",{enumerable:true,get:function(){return T.UniqueDirectivesPerLocationRule}});Object.defineProperty(t,"UniqueEnumValueNamesRule",{enumerable:true,get:function(){return L.UniqueEnumValueNamesRule}});Object.defineProperty(t,"UniqueFieldDefinitionNamesRule",{enumerable:true,get:function(){return U.UniqueFieldDefinitionNamesRule}});Object.defineProperty(t,"UniqueFragmentNamesRule",{enumerable:true,get:function(){return v.UniqueFragmentNamesRule}});Object.defineProperty(t,"UniqueInputFieldNamesRule",{enumerable:true,get:function(){return w.UniqueInputFieldNamesRule}});Object.defineProperty(t,"UniqueOperationNamesRule",{enumerable:true,get:function(){return _.UniqueOperationNamesRule}});Object.defineProperty(t,"UniqueOperationTypesRule",{enumerable:true,get:function(){return N.UniqueOperationTypesRule}});Object.defineProperty(t,"UniqueTypeNamesRule",{enumerable:true,get:function(){return P.UniqueTypeNamesRule}});Object.defineProperty(t,"UniqueVariableNamesRule",{enumerable:true,get:function(){return O.UniqueVariableNamesRule}});Object.defineProperty(t,"ValidationContext",{enumerable:true,get:function(){return s.ValidationContext}});Object.defineProperty(t,"ValuesOfCorrectTypeRule",{enumerable:true,get:function(){return k.ValuesOfCorrectTypeRule}});Object.defineProperty(t,"VariablesAreInputTypesRule",{enumerable:true,get:function(){return R.VariablesAreInputTypesRule}});Object.defineProperty(t,"VariablesInAllowedPositionRule",{enumerable:true,get:function(){return S.VariablesInAllowedPositionRule}});Object.defineProperty(t,"recommendedRules",{enumerable:true,get:function(){return o.recommendedRules}});Object.defineProperty(t,"specifiedRules",{enumerable:true,get:function(){return o.specifiedRules}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var n=r(77063);var s=r(18139);var o=r(60916);var i=r(75401);var a=r(22153);var c=r(643);var u=r(67663);var A=r(55866);var l=r(15958);var d=r(51574);var p=r(11677);var g=r(42579);var h=r(28873);var m=r(23693);var E=r(79489);var y=r(1646);var I=r(44550);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(22995);var T=r(29412);var v=r(21914);var w=r(69082);var _=r(54403);var O=r(40218);var k=r(1408);var R=r(16187);var S=r(84186);var F=r(98749);var D=r(62553);var N=r(84234);var P=r(32058);var L=r(33062);var U=r(30087);var M=r(56496);var x=r(29879);var G=r(56058);var j=r(15910);var V=r(26787)},75401:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ExecutableDefinitionsRule=ExecutableDefinitionsRule;var n=r(15939);var s=r(11123);var o=r(15480);function ExecutableDefinitionsRule(e){return{Document(t){for(const r of t.definitions){if(!(0,o.isExecutableDefinitionNode)(r)){const t=r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new n.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}}return false}}}},22153:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FieldsOnCorrectTypeRule=FieldsOnCorrectTypeRule;var n=r(41353);var s=r(23428);var o=r(47904);var i=r(15939);var a=r(84169);function FieldsOnCorrectTypeRule(e){return{Field(t){const r=e.getParentType();if(r){const s=e.getFieldDef();if(!s){const s=e.getSchema();const o=t.name.value;let a=(0,n.didYouMean)("to use an inline fragment on",getSuggestedTypeNames(s,r,o));if(a===""){a=(0,n.didYouMean)(getSuggestedFieldNames(r,o))}e.reportError(new i.GraphQLError(`Cannot query field "${o}" on type "${r.name}".`+a,{nodes:t}))}}}}}function getSuggestedTypeNames(e,t,r){if(!(0,a.isAbstractType)(t)){return[]}const n=new Set;const o=Object.create(null);for(const s of e.getPossibleTypes(t)){if(!s.getFields()[r]){continue}n.add(s);o[s.name]=1;for(const e of s.getInterfaces()){var i;if(!e.getFields()[r]){continue}n.add(e);o[e.name]=((i=o[e.name])!==null&&i!==void 0?i:0)+1}}return[...n].sort(((t,r)=>{const n=o[r.name]-o[t.name];if(n!==0){return n}if((0,a.isInterfaceType)(t)&&e.isSubType(t,r)){return-1}if((0,a.isInterfaceType)(r)&&e.isSubType(r,t)){return 1}return(0,s.naturalCompare)(t.name,r.name)})).map((e=>e.name))}function getSuggestedFieldNames(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const r=Object.keys(e.getFields());return(0,o.suggestionList)(t,r)}return[]}},643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.FragmentsOnCompositeTypesRule=FragmentsOnCompositeTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function FragmentsOnCompositeTypesRule(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=(0,i.typeFromAST)(e.getSchema(),r);if(t&&!(0,o.isCompositeType)(t)){const t=(0,s.print)(r);e.reportError(new n.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,o.isCompositeType)(r)){const r=(0,s.print)(t.typeCondition);e.reportError(new n.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}},67663:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownArgumentNamesOnDirectivesRule=KnownArgumentNamesOnDirectivesRule;t.KnownArgumentNamesRule=KnownArgumentNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(11123);var a=r(21058);function KnownArgumentNamesRule(e){return{...KnownArgumentNamesOnDirectivesRule(e),Argument(t){const r=e.getArgument();const i=e.getFieldDef();const a=e.getParentType();if(!r&&i&&a){const r=t.name.value;const c=i.args.map((e=>e.name));const u=(0,s.suggestionList)(r,c);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on field "${a.name}.${i.name}".`+(0,n.didYouMean)(u),{nodes:t}))}}}}function KnownArgumentNamesOnDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const c=r?r.getDirectives():a.specifiedDirectives;for(const e of c){t[e.name]=e.args.map((e=>e.name))}const u=e.getDocument().definitions;for(const e of u){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var A;const r=(A=e.arguments)!==null&&A!==void 0?A:[];t[e.name.value]=r.map((e=>e.name.value))}}return{Directive(r){const i=r.name.value;const a=t[i];if(r.arguments&&a){for(const t of r.arguments){const r=t.name.value;if(!a.includes(r)){const c=(0,s.suggestionList)(r,a);e.reportError(new o.GraphQLError(`Unknown argument "${r}" on directive "@${i}".`+(0,n.didYouMean)(c),{nodes:t}))}}}return false}}}},55866:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownDirectivesRule=KnownDirectivesRule;var n=r(25742);var s=r(33650);var o=r(15939);var i=r(22740);var a=r(22582);var c=r(11123);var u=r(21058);function KnownDirectivesRule(e){const t=Object.create(null);const r=e.getSchema();const n=r?r.getDirectives():u.specifiedDirectives;for(const e of n){t[e.name]=e.locations}const s=e.getDocument().definitions;for(const e of s){if(e.kind===c.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=e.locations.map((e=>e.value))}}return{Directive(r,n,s,i,a){const c=r.name.value;const u=t[c];if(!u){e.reportError(new o.GraphQLError(`Unknown directive "@${c}".`,{nodes:r}));return}const A=getDirectiveLocationForASTPath(a);if(A&&!u.includes(A)){e.reportError(new o.GraphQLError(`Directive "@${c}" may not be used on ${A}.`,{nodes:r}))}}}}function getDirectiveLocationForASTPath(e){const t=e[e.length-1];"kind"in t||(0,s.invariant)(false);switch(t.kind){case c.Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(t.operation);case c.Kind.FIELD:return a.DirectiveLocation.FIELD;case c.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case c.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case c.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case c.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case c.Kind.SCHEMA_DEFINITION:case c.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case c.Kind.SCALAR_TYPE_DEFINITION:case c.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case c.Kind.OBJECT_TYPE_DEFINITION:case c.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case c.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case c.Kind.INTERFACE_TYPE_DEFINITION:case c.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case c.Kind.UNION_TYPE_DEFINITION:case c.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case c.Kind.ENUM_TYPE_DEFINITION:case c.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case c.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case c.Kind.INPUT_OBJECT_TYPE_DEFINITION:case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case c.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];"kind"in t||(0,s.invariant)(false);return t.kind===c.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:false||(0,s.invariant)(false,"Unexpected kind: "+(0,n.inspect)(t.kind))}}function getDirectiveLocationForOperation(e){switch(e){case i.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case i.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case i.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}},15958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownFragmentNamesRule=KnownFragmentNamesRule;var n=r(15939);function KnownFragmentNamesRule(e){return{FragmentSpread(t){const r=t.name.value;const s=e.getFragment(r);if(!s){e.reportError(new n.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}}},51574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.KnownTypeNamesRule=KnownTypeNamesRule;var n=r(41353);var s=r(47904);var o=r(15939);var i=r(15480);var a=r(10317);var c=r(93571);function KnownTypeNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const a=Object.create(null);for(const t of e.getDocument().definitions){if((0,i.isTypeDefinitionNode)(t)){a[t.name.value]=true}}const c=[...Object.keys(r),...Object.keys(a)];return{NamedType(t,i,A,l,d){const p=t.name.value;if(!r[p]&&!a[p]){var g;const r=(g=d[2])!==null&&g!==void 0?g:A;const i=r!=null&&isSDLNode(r);if(i&&u.includes(p)){return}const a=(0,s.suggestionList)(p,i?u.concat(c):c);e.reportError(new o.GraphQLError(`Unknown type "${p}".`+(0,n.didYouMean)(a),{nodes:t}))}}}}const u=[...c.specifiedScalarTypes,...a.introspectionTypes].map((e=>e.name));function isSDLNode(e){return"kind"in e&&((0,i.isTypeSystemDefinitionNode)(e)||(0,i.isTypeSystemExtensionNode)(e))}},11677:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneAnonymousOperationRule=LoneAnonymousOperationRule;var n=r(15939);var s=r(11123);function LoneAnonymousOperationRule(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===s.Kind.OPERATION_DEFINITION)).length},OperationDefinition(r){if(!r.name&&t>1){e.reportError(new n.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}}},62553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.LoneSchemaDefinitionRule=LoneSchemaDefinitionRule;var n=r(15939);function LoneSchemaDefinitionRule(e){var t,r,s;const o=e.getSchema();const i=(t=(r=(s=o===null||o===void 0?void 0:o.astNode)!==null&&s!==void 0?s:o===null||o===void 0?void 0:o.getQueryType())!==null&&r!==void 0?r:o===null||o===void 0?void 0:o.getMutationType())!==null&&t!==void 0?t:o===null||o===void 0?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){if(i){e.reportError(new n.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t}));return}if(a>0){e.reportError(new n.GraphQLError("Must provide only one schema definition.",{nodes:t}))}++a}}}},98749:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MaxIntrospectionDepthRule=MaxIntrospectionDepthRule;var n=r(15939);var s=r(11123);const o=3;function MaxIntrospectionDepthRule(e){function checkDepth(t,r=Object.create(null),n=0){if(t.kind===s.Kind.FRAGMENT_SPREAD){const s=t.name.value;if(r[s]===true){return false}const o=e.getFragment(s);if(!o){return false}try{r[s]=true;return checkDepth(o,r,n)}finally{r[s]=undefined}}if(t.kind===s.Kind.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){n++;if(n>=o){return true}}if("selectionSet"in t&&t.selectionSet){for(const e of t.selectionSet.selections){if(checkDepth(e,r,n)){return true}}}return false}return{Field(t){if(t.name.value==="__schema"||t.name.value==="__type"){if(checkDepth(t)){e.reportError(new n.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]}));return false}}}}}},42579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoFragmentCyclesRule=NoFragmentCyclesRule;var n=r(15939);function NoFragmentCyclesRule(e){const t=Object.create(null);const r=[];const s=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(e){detectCycleRecursive(e);return false}};function detectCycleRecursive(o){if(t[o.name.value]){return}const i=o.name.value;t[i]=true;const a=e.getFragmentSpreads(o.selectionSet);if(a.length===0){return}s[i]=r.length;for(const t of a){const o=t.name.value;const i=s[o];r.push(t);if(i===undefined){const t=e.getFragment(o);if(t){detectCycleRecursive(t)}}else{const t=r.slice(i);const s=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new n.GraphQLError(`Cannot spread fragment "${o}" within itself`+(s!==""?` via ${s}.`:"."),{nodes:t}))}r.pop()}s[i]=undefined}}},28873:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedVariablesRule=NoUndefinedVariablesRule;var n=r(15939);function NoUndefinedVariablesRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const s=e.getRecursiveVariableUsages(r);for(const{node:o}of s){const s=o.name.value;if(t[s]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${s}" is not defined by operation "${r.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[o,r]}))}}}},VariableDefinition(e){t[e.variable.name.value]=true}}}},23693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedFragmentsRule=NoUnusedFragmentsRule;var n=r(15939);function NoUnusedFragmentsRule(e){const t=[];const r=[];return{OperationDefinition(e){t.push(e);return false},FragmentDefinition(e){r.push(e);return false},Document:{leave(){const s=Object.create(null);for(const r of t){for(const t of e.getRecursivelyReferencedFragments(r)){s[t.name.value]=true}}for(const t of r){const r=t.name.value;if(s[r]!==true){e.reportError(new n.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}}},79489:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoUnusedVariablesRule=NoUnusedVariablesRule;var n=r(15939);function NoUnusedVariablesRule(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const s=Object.create(null);const o=e.getRecursiveVariableUsages(r);for(const{node:e}of o){s[e.name.value]=true}for(const o of t){const t=o.variable.name.value;if(s[t]!==true){e.reportError(new n.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}}},VariableDefinition(e){t.push(e)}}}},1646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.OverlappingFieldsCanBeMergedRule=OverlappingFieldsCanBeMergedRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(59936);var a=r(84169);var c=r(67287);var u=r(76738);function reasonMessage(e){if(Array.isArray(e)){return e.map((([e,t])=>`subfields "${e}" conflict because `+reasonMessage(t))).join(" and ")}return e}function OverlappingFieldsCanBeMergedRule(e){const t=new PairSet;const r=new Map;return{SelectionSet(n){const o=findConflictsWithinSelectionSet(e,r,t,e.getParentType(),n);for(const[[t,r],n,i]of o){const o=reasonMessage(r);e.reportError(new s.GraphQLError(`Fields "${t}" conflict because ${o}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(i)}))}}}}function findConflictsWithinSelectionSet(e,t,r,n,s){const o=[];const[i,a]=getFieldsAndFragmentNames(e,t,n,s);collectConflictsWithin(e,o,t,r,i);if(a.length!==0){for(let n=0;n1){for(let s=0;s[e.value,t])));return r.every((e=>{const t=e.value;const r=s.get(e.name.value);if(r===undefined){return false}return stringifyValue(t)===stringifyValue(r)}))}function stringifyValue(e){return(0,i.print)((0,c.sortValueNode)(e))}function doTypesConflict(e,t){if((0,a.isListType)(e)){return(0,a.isListType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isListType)(t)){return true}if((0,a.isNonNullType)(e)){return(0,a.isNonNullType)(t)?doTypesConflict(e.ofType,t.ofType):true}if((0,a.isNonNullType)(t)){return true}if((0,a.isLeafType)(e)||(0,a.isLeafType)(t)){return e!==t}return false}function getFieldsAndFragmentNames(e,t,r,n){const s=t.get(n);if(s){return s}const o=Object.create(null);const i=Object.create(null);_collectFieldsAndFragmentNames(e,r,n,o,i);const a=[o,Object.keys(i)];t.set(n,a);return a}function getReferencedFieldsAndFragmentNames(e,t,r){const n=t.get(r.selectionSet);if(n){return n}const s=(0,u.typeFromAST)(e.getSchema(),r.typeCondition);return getFieldsAndFragmentNames(e,t,s,r.selectionSet)}function _collectFieldsAndFragmentNames(e,t,r,n,s){for(const i of r.selections){switch(i.kind){case o.Kind.FIELD:{const e=i.name.value;let r;if((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t)){r=t.getFields()[e]}const s=i.alias?i.alias.value:e;if(!n[s]){n[s]=[]}n[s].push([t,i,r]);break}case o.Kind.FRAGMENT_SPREAD:s[i.name.value]=true;break;case o.Kind.INLINE_FRAGMENT:{const r=i.typeCondition;const o=r?(0,u.typeFromAST)(e.getSchema(),r):t;_collectFieldsAndFragmentNames(e,o,i.selectionSet,n,s);break}}}}function subfieldConflicts(e,t,r,n){if(e.length>0){return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}}class PairSet{constructor(){this._data=new Map}has(e,t,r){var n;const[s,o]=e{Object.defineProperty(t,"__esModule",{value:true});t.PossibleFragmentSpreadsRule=PossibleFragmentSpreadsRule;var n=r(25742);var s=r(15939);var o=r(84169);var i=r(46539);var a=r(76738);function PossibleFragmentSpreadsRule(e){return{InlineFragment(t){const r=e.getType();const a=e.getParentType();if((0,o.isCompositeType)(r)&&(0,o.isCompositeType)(a)&&!(0,i.doTypesOverlap)(e.getSchema(),r,a)){const o=(0,n.inspect)(a);const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value;const o=getFragmentType(e,r);const a=e.getParentType();if(o&&a&&!(0,i.doTypesOverlap)(e.getSchema(),o,a)){const i=(0,n.inspect)(a);const c=(0,n.inspect)(o);e.reportError(new s.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${i}" can never be of type "${c}".`,{nodes:t}))}}}}function getFragmentType(e,t){const r=e.getFragment(t);if(r){const t=(0,a.typeFromAST)(e.getSchema(),r.typeCondition);if((0,o.isCompositeType)(t)){return t}}}},56058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.PossibleTypeExtensionsRule=PossibleTypeExtensionsRule;var n=r(41353);var s=r(25742);var o=r(33650);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(15480);var A=r(84169);function PossibleTypeExtensionsRule(e){const t=e.getSchema();const r=Object.create(null);for(const t of e.getDocument().definitions){if((0,u.isTypeDefinitionNode)(t)){r[t.name.value]=t}}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(s){const o=s.name.value;const c=r[o];const u=t===null||t===void 0?void 0:t.getType(o);let A;if(c){A=l[c.kind]}else if(u){A=typeToExtKind(u)}if(A){if(A!==s.kind){const t=extensionKindToTypeName(s.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${o}".`,{nodes:c?[c,s]:s}))}}else{const c=Object.keys({...r,...t===null||t===void 0?void 0:t.getTypeMap()});const u=(0,i.suggestionList)(o,c);e.reportError(new a.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,n.didYouMean)(u),{nodes:s.name}))}}}const l={[c.Kind.SCALAR_TYPE_DEFINITION]:c.Kind.SCALAR_TYPE_EXTENSION,[c.Kind.OBJECT_TYPE_DEFINITION]:c.Kind.OBJECT_TYPE_EXTENSION,[c.Kind.INTERFACE_TYPE_DEFINITION]:c.Kind.INTERFACE_TYPE_EXTENSION,[c.Kind.UNION_TYPE_DEFINITION]:c.Kind.UNION_TYPE_EXTENSION,[c.Kind.ENUM_TYPE_DEFINITION]:c.Kind.ENUM_TYPE_EXTENSION,[c.Kind.INPUT_OBJECT_TYPE_DEFINITION]:c.Kind.INPUT_OBJECT_TYPE_EXTENSION};function typeToExtKind(e){if((0,A.isScalarType)(e)){return c.Kind.SCALAR_TYPE_EXTENSION}if((0,A.isObjectType)(e)){return c.Kind.OBJECT_TYPE_EXTENSION}if((0,A.isInterfaceType)(e)){return c.Kind.INTERFACE_TYPE_EXTENSION}if((0,A.isUnionType)(e)){return c.Kind.UNION_TYPE_EXTENSION}if((0,A.isEnumType)(e)){return c.Kind.ENUM_TYPE_EXTENSION}if((0,A.isInputObjectType)(e)){return c.Kind.INPUT_OBJECT_TYPE_EXTENSION}false||(0,o.invariant)(false,"Unexpected type: "+(0,s.inspect)(e))}function extensionKindToTypeName(e){switch(e){case c.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case c.Kind.OBJECT_TYPE_EXTENSION:return"object";case c.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case c.Kind.UNION_TYPE_EXTENSION:return"union";case c.Kind.ENUM_TYPE_EXTENSION:return"enum";case c.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:false||(0,o.invariant)(false,"Unexpected kind: "+(0,s.inspect)(e))}}},1145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ProvidedRequiredArgumentsOnDirectivesRule=ProvidedRequiredArgumentsOnDirectivesRule;t.ProvidedRequiredArgumentsRule=ProvidedRequiredArgumentsRule;var n=r(25742);var s=r(37579);var o=r(15939);var i=r(11123);var a=r(59936);var c=r(84169);var u=r(21058);function ProvidedRequiredArgumentsRule(e){return{...ProvidedRequiredArgumentsOnDirectivesRule(e),Field:{leave(t){var r;const s=e.getFieldDef();if(!s){return false}const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map((e=>e.name.value)));for(const r of s.args){if(!i.has(r.name)&&(0,c.isRequiredArgument)(r)){const i=(0,n.inspect)(r.type);e.reportError(new o.GraphQLError(`Field "${s.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ProvidedRequiredArgumentsOnDirectivesRule(e){var t;const r=Object.create(null);const A=e.getSchema();const l=(t=A===null||A===void 0?void 0:A.getDirectives())!==null&&t!==void 0?t:u.specifiedDirectives;for(const e of l){r[e.name]=(0,s.keyMap)(e.args.filter(c.isRequiredArgument),(e=>e.name))}const d=e.getDocument().definitions;for(const e of d){if(e.kind===i.Kind.DIRECTIVE_DEFINITION){var p;const t=(p=e.arguments)!==null&&p!==void 0?p:[];r[e.name.value]=(0,s.keyMap)(t.filter(isRequiredArgumentNode),(e=>e.name.value))}}return{Directive:{leave(t){const s=t.name.value;const i=r[s];if(i){var u;const r=(u=t.arguments)!==null&&u!==void 0?u:[];const A=new Set(r.map((e=>e.name.value)));for(const[r,u]of Object.entries(i)){if(!A.has(r)){const i=(0,c.isType)(u.type)?(0,n.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${s}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}}function isRequiredArgumentNode(e){return e.type.kind===i.Kind.NON_NULL_TYPE&&e.defaultValue==null}},14754:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ScalarLeafsRule=ScalarLeafsRule;var n=r(25742);var s=r(15939);var o=r(84169);function ScalarLeafsRule(e){return{Field(t){const r=e.getType();const i=t.selectionSet;if(r){if((0,o.isLeafType)((0,o.getNamedType)(r))){if(i){const o=t.name.value;const a=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:i}))}}else if(!i){const o=t.name.value;const i=(0,n.inspect)(r);e.reportError(new s.GraphQLError(`Field "${o}" of type "${i}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}}},51705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SingleFieldSubscriptionsRule=SingleFieldSubscriptionsRule;var n=r(15939);var s=r(11123);var o=r(77611);function SingleFieldSubscriptionsRule(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema();const i=r.getSubscriptionType();if(i){const a=t.name?t.name.value:null;const c=Object.create(null);const u=e.getDocument();const A=Object.create(null);for(const e of u.definitions){if(e.kind===s.Kind.FRAGMENT_DEFINITION){A[e.name.value]=e}}const l=(0,o.collectFields)(r,A,c,i,t.selectionSet);if(l.size>1){const t=[...l.values()];const r=t.slice(1);const s=r.flat();e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:s}))}for(const t of l.values()){const r=t[0];const s=r.name.value;if(s.startsWith("__")){e.reportError(new n.GraphQLError(a!=null?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}}},56496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentDefinitionNamesRule=UniqueArgumentDefinitionNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentDefinitionNamesRule(e){return{DirectiveDefinition(e){var t;const r=(t=e.arguments)!==null&&t!==void 0?t:[];return checkArgUniqueness(`@${e.name.value}`,r)},InterfaceTypeDefinition:checkArgUniquenessPerField,InterfaceTypeExtension:checkArgUniquenessPerField,ObjectTypeDefinition:checkArgUniquenessPerField,ObjectTypeExtension:checkArgUniquenessPerField};function checkArgUniquenessPerField(e){var t;const r=e.name.value;const n=(t=e.fields)!==null&&t!==void 0?t:[];for(const e of n){var s;const t=e.name.value;const n=(s=e.arguments)!==null&&s!==void 0?s:[];checkArgUniqueness(`${r}.${t}`,n)}return false}function checkArgUniqueness(t,r){const o=(0,n.groupBy)(r,(e=>e.name.value));for(const[r,n]of o){if(n.length>1){e.reportError(new s.GraphQLError(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:n.map((e=>e.name))}))}}return false}}},22995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueArgumentNamesRule=UniqueArgumentNamesRule;var n=r(48520);var s=r(15939);function UniqueArgumentNamesRule(e){return{Field:checkArgUniqueness,Directive:checkArgUniqueness};function checkArgUniqueness(t){var r;const o=(r=t.arguments)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}}}},29879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectiveNamesRule=UniqueDirectiveNamesRule;var n=r(15939);function UniqueDirectiveNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{DirectiveDefinition(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getDirective(o)){e.reportError(new n.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}}},29412:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueDirectivesPerLocationRule=UniqueDirectivesPerLocationRule;var n=r(15939);var s=r(11123);var o=r(15480);var i=r(21058);function UniqueDirectivesPerLocationRule(e){const t=Object.create(null);const r=e.getSchema();const a=r?r.getDirectives():i.specifiedDirectives;for(const e of a){t[e.name]=!e.isRepeatable}const c=e.getDocument().definitions;for(const e of c){if(e.kind===s.Kind.DIRECTIVE_DEFINITION){t[e.name.value]=!e.repeatable}}const u=Object.create(null);const A=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives){return}let i;if(r.kind===s.Kind.SCHEMA_DEFINITION||r.kind===s.Kind.SCHEMA_EXTENSION){i=u}else if((0,o.isTypeDefinitionNode)(r)||(0,o.isTypeExtensionNode)(r)){const e=r.name.value;i=A[e];if(i===undefined){A[e]=i=Object.create(null)}}else{i=Object.create(null)}for(const s of r.directives){const r=s.name.value;if(t[r]){if(i[r]){e.reportError(new n.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[i[r],s]}))}else{i[r]=s}}}}}}},33062:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueEnumValueNamesRule=UniqueEnumValueNamesRule;var n=r(15939);var s=r(84169);function UniqueEnumValueNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const o=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(t){var i;const a=t.name.value;if(!o[a]){o[a]=Object.create(null)}const c=(i=t.values)!==null&&i!==void 0?i:[];const u=o[a];for(const t of c){const o=t.name.value;const i=r[a];if((0,s.isEnumType)(i)&&i.getValue(o)){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(u[o]){e.reportError(new n.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]}))}else{u[o]=t.name}}return false}}},30087:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFieldDefinitionNamesRule=UniqueFieldDefinitionNamesRule;var n=r(15939);var s=r(84169);function UniqueFieldDefinitionNamesRule(e){const t=e.getSchema();const r=t?t.getTypeMap():Object.create(null);const s=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(t){var o;const i=t.name.value;if(!s[i]){s[i]=Object.create(null)}const a=(o=t.fields)!==null&&o!==void 0?o:[];const c=s[i];for(const t of a){const s=t.name.value;if(hasField(r[i],s)){e.reportError(new n.GraphQLError(`Field "${i}.${s}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name}))}else if(c[s]){e.reportError(new n.GraphQLError(`Field "${i}.${s}" can only be defined once.`,{nodes:[c[s],t.name]}))}else{c[s]=t.name}}return false}}function hasField(e,t){if((0,s.isObjectType)(e)||(0,s.isInterfaceType)(e)||(0,s.isInputObjectType)(e)){return e.getFields()[t]!=null}return false}},21914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueFragmentNamesRule=UniqueFragmentNamesRule;var n=r(15939);function UniqueFragmentNamesRule(e){const t=Object.create(null);return{OperationDefinition:()=>false,FragmentDefinition(r){const s=r.name.value;if(t[s]){e.reportError(new n.GraphQLError(`There can be only one fragment named "${s}".`,{nodes:[t[s],r.name]}))}else{t[s]=r.name}return false}}}},69082:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueInputFieldNamesRule=UniqueInputFieldNamesRule;var n=r(33650);var s=r(15939);function UniqueInputFieldNamesRule(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r);r=Object.create(null)},leave(){const e=t.pop();e||(0,n.invariant)(false);r=e}},ObjectField(t){const n=t.name.value;if(r[n]){e.reportError(new s.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]}))}else{r[n]=t.name}}}}},54403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationNamesRule=UniqueOperationNamesRule;var n=r(15939);function UniqueOperationNamesRule(e){const t=Object.create(null);return{OperationDefinition(r){const s=r.name;if(s){if(t[s.value]){e.reportError(new n.GraphQLError(`There can be only one operation named "${s.value}".`,{nodes:[t[s.value],s]}))}else{t[s.value]=s}}return false},FragmentDefinition:()=>false}}},84234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueOperationTypesRule=UniqueOperationTypesRule;var n=r(15939);function UniqueOperationTypesRule(e){const t=e.getSchema();const r=Object.create(null);const s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(t){var o;const i=(o=t.operationTypes)!==null&&o!==void 0?o:[];for(const t of i){const o=t.operation;const i=r[o];if(s[o]){e.reportError(new n.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t}))}else if(i){e.reportError(new n.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[i,t]}))}else{r[o]=t}}return false}}},32058:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueTypeNamesRule=UniqueTypeNamesRule;var n=r(15939);function UniqueTypeNamesRule(e){const t=Object.create(null);const r=e.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(s){const o=s.name.value;if(r!==null&&r!==void 0&&r.getType(o)){e.reportError(new n.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:s.name}));return}if(t[o]){e.reportError(new n.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],s.name]}))}else{t[o]=s.name}return false}}},40218:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.UniqueVariableNamesRule=UniqueVariableNamesRule;var n=r(48520);var s=r(15939);function UniqueVariableNamesRule(e){return{OperationDefinition(t){var r;const o=(r=t.variableDefinitions)!==null&&r!==void 0?r:[];const i=(0,n.groupBy)(o,(e=>e.variable.name.value));for(const[t,r]of i){if(r.length>1){e.reportError(new s.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}}}},1408:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValuesOfCorrectTypeRule=ValuesOfCorrectTypeRule;var n=r(41353);var s=r(25742);var o=r(37579);var i=r(47904);var a=r(15939);var c=r(11123);var u=r(59936);var A=r(84169);function ValuesOfCorrectTypeRule(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){const r=(0,A.getNullableType)(e.getParentInputType());if(!(0,A.isListType)(r)){isValidValueNode(e,t);return false}},ObjectValue(r){const n=(0,A.getNamedType)(e.getInputType());if(!(0,A.isInputObjectType)(n)){isValidValueNode(e,r);return false}const i=(0,o.keyMap)(r.fields,(e=>e.name.value));for(const t of Object.values(n.getFields())){const o=i[t.name];if(!o&&(0,A.isRequiredInputField)(t)){const o=(0,s.inspect)(t.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${t.name}" of required type "${o}" was not provided.`,{nodes:r}))}}if(n.isOneOf){validateOneOfInputObject(e,r,n,i,t)}},ObjectField(t){const r=(0,A.getNamedType)(e.getParentInputType());const s=e.getInputType();if(!s&&(0,A.isInputObjectType)(r)){const s=(0,i.suggestionList)(t.name.value,Object.keys(r.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+(0,n.didYouMean)(s),{nodes:t}))}},NullValue(t){const r=e.getInputType();if((0,A.isNonNullType)(r)){e.reportError(new a.GraphQLError(`Expected value of type "${(0,s.inspect)(r)}", found ${(0,u.print)(t)}.`,{nodes:t}))}},EnumValue:t=>isValidValueNode(e,t),IntValue:t=>isValidValueNode(e,t),FloatValue:t=>isValidValueNode(e,t),StringValue:t=>isValidValueNode(e,t),BooleanValue:t=>isValidValueNode(e,t)}}function isValidValueNode(e,t){const r=e.getInputType();if(!r){return}const n=(0,A.getNamedType)(r);if(!(0,A.isLeafType)(n)){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}));return}try{const o=n.parseLiteral(t,undefined);if(o===undefined){const n=(0,s.inspect)(r);e.reportError(new a.GraphQLError(`Expected value of type "${n}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(n){const o=(0,s.inspect)(r);if(n instanceof a.GraphQLError){e.reportError(n)}else{e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+n.message,{nodes:t,originalError:n}))}}}function validateOneOfInputObject(e,t,r,n,s){var o;const i=Object.keys(n);const u=i.length!==1;if(u){e.reportError(new a.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const A=(o=n[i[0]])===null||o===void 0?void 0:o.value;const l=!A||A.kind===c.Kind.NULL;const d=(A===null||A===void 0?void 0:A.kind)===c.Kind.VARIABLE;if(l){e.reportError(new a.GraphQLError(`Field "${r.name}.${i[0]}" must be non-null.`,{nodes:[t]}));return}if(d){const n=A.name.value;const o=s[n];const i=o.type.kind!==c.Kind.NON_NULL_TYPE;if(i){e.reportError(new a.GraphQLError(`Variable "${n}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}}},16187:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesAreInputTypesRule=VariablesAreInputTypesRule;var n=r(15939);var s=r(59936);var o=r(84169);var i=r(76738);function VariablesAreInputTypesRule(e){return{VariableDefinition(t){const r=(0,i.typeFromAST)(e.getSchema(),t.type);if(r!==undefined&&!(0,o.isInputType)(r)){const r=t.variable.name.value;const o=(0,s.print)(t.type);e.reportError(new n.GraphQLError(`Variable "$${r}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.VariablesInAllowedPositionRule=VariablesInAllowedPositionRule;var n=r(25742);var s=r(15939);var o=r(11123);var i=r(84169);var a=r(46539);var c=r(76738);function VariablesInAllowedPositionRule(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const o=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:a}of o){const o=r.name.value;const u=t[o];if(u&&i){const t=e.getSchema();const A=(0,c.typeFromAST)(t,u.type);if(A&&!allowedVariableUsage(t,A,u.defaultValue,i,a)){const t=(0,n.inspect)(A);const a=(0,n.inspect)(i);e.reportError(new s.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${a}".`,{nodes:[u,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function allowedVariableUsage(e,t,r,n,s){if((0,i.isNonNullType)(n)&&!(0,i.isNonNullType)(t)){const i=r!=null&&r.kind!==o.Kind.NULL;const c=s!==undefined;if(!i&&!c){return false}const u=n.ofType;return(0,a.isTypeSubTypeOf)(e,t,u)}return(0,a.isTypeSubTypeOf)(e,t,n)}},15910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoDeprecatedCustomRule=NoDeprecatedCustomRule;var n=r(33650);var s=r(15939);var o=r(84169);function NoDeprecatedCustomRule(e){return{Field(t){const r=e.getFieldDef();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getParentType();i!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const r=e.getArgument();const o=r===null||r===void 0?void 0:r.deprecationReason;if(r&&o!=null){const i=e.getDirective();if(i!=null){e.reportError(new s.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}else{const i=e.getParentType();const a=e.getFieldDef();i!=null&&a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`Field "${i.name}.${a.name}" argument "${r.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const r=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(r)){const n=r.getFields()[t.name.value];const o=n===null||n===void 0?void 0:n.deprecationReason;if(o!=null){e.reportError(new s.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}}},EnumValue(t){const r=e.getEnumValue();const i=r===null||r===void 0?void 0:r.deprecationReason;if(r&&i!=null){const a=(0,o.getNamedType)(e.getInputType());a!=null||(0,n.invariant)(false);e.reportError(new s.GraphQLError(`The enum value "${a.name}.${r.name}" is deprecated. ${i}`,{nodes:t}))}}}}},26787:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.NoSchemaIntrospectionCustomRule=NoSchemaIntrospectionCustomRule;var n=r(15939);var s=r(84169);var o=r(10317);function NoSchemaIntrospectionCustomRule(e){return{Field(t){const r=(0,s.getNamedType)(e.getType());if(r&&(0,o.isIntrospectionType)(r)){e.reportError(new n.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}}},60916:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.specifiedSDLRules=t.specifiedRules=t.recommendedRules=void 0;var n=r(75401);var s=r(22153);var o=r(643);var i=r(67663);var a=r(55866);var c=r(15958);var u=r(51574);var A=r(11677);var l=r(62553);var d=r(98749);var p=r(42579);var g=r(28873);var h=r(23693);var m=r(79489);var E=r(1646);var y=r(44550);var I=r(56058);var C=r(1145);var b=r(14754);var B=r(51705);var Q=r(56496);var T=r(22995);var v=r(29879);var w=r(29412);var _=r(33062);var O=r(30087);var k=r(21914);var R=r(69082);var S=r(54403);var F=r(84234);var D=r(32058);var N=r(40218);var P=r(1408);var L=r(16187);var U=r(84186);const M=Object.freeze([d.MaxIntrospectionDepthRule]);t.recommendedRules=M;const x=Object.freeze([n.ExecutableDefinitionsRule,S.UniqueOperationNamesRule,A.LoneAnonymousOperationRule,B.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,L.VariablesAreInputTypesRule,b.ScalarLeafsRule,s.FieldsOnCorrectTypeRule,k.UniqueFragmentNamesRule,c.KnownFragmentNamesRule,h.NoUnusedFragmentsRule,y.PossibleFragmentSpreadsRule,p.NoFragmentCyclesRule,N.UniqueVariableNamesRule,g.NoUndefinedVariablesRule,m.NoUnusedVariablesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,i.KnownArgumentNamesRule,T.UniqueArgumentNamesRule,P.ValuesOfCorrectTypeRule,C.ProvidedRequiredArgumentsRule,U.VariablesInAllowedPositionRule,E.OverlappingFieldsCanBeMergedRule,R.UniqueInputFieldNamesRule,...M]);t.specifiedRules=x;const G=Object.freeze([l.LoneSchemaDefinitionRule,F.UniqueOperationTypesRule,D.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,O.UniqueFieldDefinitionNamesRule,Q.UniqueArgumentDefinitionNamesRule,v.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,w.UniqueDirectivesPerLocationRule,I.PossibleTypeExtensionsRule,i.KnownArgumentNamesOnDirectivesRule,T.UniqueArgumentNamesRule,R.UniqueInputFieldNamesRule,C.ProvidedRequiredArgumentsOnDirectivesRule]);t.specifiedSDLRules=G},77063:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertValidSDL=assertValidSDL;t.assertValidSDLExtension=assertValidSDLExtension;t.validate=validate;t.validateSDL=validateSDL;var n=r(65383);var s=r(15939);var o=r(30638);var i=r(33902);var a=r(85e3);var c=r(60916);var u=r(18139);function validate(e,t,r=c.specifiedRules,A,l=new a.TypeInfo(e)){var d;const p=(d=A===null||A===void 0?void 0:A.maxErrors)!==null&&d!==void 0?d:100;t||(0,n.devAssert)(false,"Must provide document.");(0,i.assertValidSchema)(e);const g=Object.freeze({});const h=[];const m=new u.ValidationContext(e,t,l,(e=>{if(h.length>=p){h.push(new s.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));throw g}h.push(e)}));const E=(0,o.visitInParallel)(r.map((e=>e(m))));try{(0,o.visit)(t,(0,a.visitWithTypeInfo)(l,E))}catch(e){if(e!==g){throw e}}return h}function validateSDL(e,t,r=c.specifiedSDLRules){const n=[];const s=new u.SDLValidationContext(e,t,(e=>{n.push(e)}));const i=r.map((e=>e(s)));(0,o.visit)(e,(0,o.visitInParallel)(i));return n}function assertValidSDL(e){const t=validateSDL(e);if(t.length!==0){throw new Error(t.map((e=>e.message)).join("\n\n"))}}function assertValidSDLExtension(e,t){const r=validateSDL(e,t);if(r.length!==0){throw new Error(r.map((e=>e.message)).join("\n\n"))}}},98725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.versionInfo=t.version=void 0;const r="16.9.0";t.version=r;const n=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});t.versionInfo=n},70744:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var o=s*7;var i=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var c=parseFloat(a[1]);var u=(a[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=s){return Math.round(e/s)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=s){return plural(e,o,s,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},55560:(e,t,r)=>{var n=r(58264);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 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}},61860:e=>{var t;var r;var n;var s;var o;var i;var a;var c;var u;var A;var l;var d;var p;var g;var h;var m;var E;var y;var I;var C;var b;var B;var Q;var T;var v;var w;var _;var O;var k;var R;var S;var F;(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,n){return e[r]=t?t(r,n):n}}})((function(e){var D=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");D(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,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};o=function(e,t){return function(r,n){t(r,n,e)}};i=function(e,t,r,n,s,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,a=i==="getter"?"get":i==="setter"?"set":"value";var c=!t&&e?n["static"]?e:e.prototype:null;var u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{});var A,l=false;for(var d=r.length-1;d>=0;d--){var p={};for(var g in n)p[g]=g==="access"?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var h=(0,r[d])(i==="accessor"?{get:u.get,set:u.set}:u[a],p);if(i==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(A=accept(h.get))u.get=A;if(A=accept(h.set))u.set=A;if(A=accept(h.init))s.unshift(A)}else if(A=accept(h)){if(i==="field")s.unshift(A);else u[a]=A}}if(c)Object.defineProperty(c,n.name,u);l=true};a=function(e,t,r){var n=arguments.length>2;for(var s=0;s0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[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.")};h=function(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};m=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)s[e]=t(s[e])}}function resume(e,t){try{step(n[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof I?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(n,s){t[n]=e[n]?function(t){return(r=!r)?{value:I(e[n](t)),done:false}:s?s(t):t}:s}};B=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 g==="function"?g(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)}};Q=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};T=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))k(t,e,r);N(t,e);return t};v=function(e){return e&&e.__esModule?e:{default:e}};w=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};_=function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};O=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};R=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose];if(r)s=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(s)n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}};e.stack.push({value:t,dispose:n,async:r})}else if(r){e.stack.push({async:true})}return t};var P=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};S=function(e){function fail(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}var t,r=0;function next(){while(t=e.stack.pop()){try{if(!t.async&&r===1)return r=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var n=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}else r|=1}catch(e){fail(e)}}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()};F=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e)){return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,s,o){return r?t?".jsx":".js":n&&(!s||!o)?e:n+s+"."+o.toLowerCase()+"js"}))}return e};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",s);e("__param",o);e("__esDecorate",i);e("__runInitializers",a);e("__propKey",c);e("__setFunctionName",u);e("__metadata",A);e("__awaiter",l);e("__generator",d);e("__exportStar",p);e("__createBinding",k);e("__values",g);e("__read",h);e("__spread",m);e("__spreadArrays",E);e("__spreadArray",y);e("__await",I);e("__asyncGenerator",C);e("__asyncDelegator",b);e("__asyncValues",B);e("__makeTemplateObject",Q);e("__importStar",T);e("__importDefault",v);e("__classPrivateFieldGet",w);e("__classPrivateFieldSet",_);e("__classPrivateFieldIn",O);e("__addDisposableResource",R);e("__disposeResources",S);e("__rewriteRelativeImportExtension",F)}));0&&0},20770:(e,t,r)=>{e.exports=r(20218)},20218:(e,t,r)=>{var n=r(69278);var s=r(64756);var o=r(58611);var i=r(65692);var a=r(24434);var c=r(42613);var u=r(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,n,s){var o=toOptions(r,n,s);for(var i=0,a=t.requests.length;i=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var s=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}A("making CONNECT request");var o=r.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(s,i,a){o.removeAllListeners();i.removeAllListeners();if(s.statusCode!==200){A("tunneling socket could not be established, statusCode=%d",s.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){A("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}A("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=i;return t(i)}function onError(t){o.removeAllListeners();A("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(n){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host});var a=s.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{Object.defineProperty(t,"__esModule",{value:true});t.AbstractStandardValidator=void 0;const n=r(29293);class AbstractStandardValidator extends n.AbstractValidator{constructor(e){super(e)}assertAndClean(e,t){this.assert(e,t);this.cleanValue(this.schema,e)}assertAndCleanCopy(e,t){this.assert(e,t);return this.cleanCopyOfValue(this.schema,e)}validateAndClean(e,t){this.validate(e,t);this.cleanValue(this.schema,e)}validateAndCleanCopy(e,t){this.validate(e,t);return this.cleanCopyOfValue(this.schema,e)}}t.AbstractStandardValidator=AbstractStandardValidator},73422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractTypedUnionValidator=t.DEFAULT_DISCRIMINANT_KEY=void 0;const n=r(29293);t.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends n.AbstractValidator{constructor(e){super(e)}assert(e,t){this.assertReturningSchema(e,t)}assertAndClean(e,t){const r=this.assertReturningSchema(e,t);this.cleanValue(r,e)}assertAndCleanCopy(e,t){const r=this.assertReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}validate(e,t){this.validateReturningSchema(e,t)}validateAndClean(e,t){const r=this.validateReturningSchema(e,t);this.cleanValue(r,e)}validateAndCleanCopy(e,t){const r=this.validateReturningSchema(e,t);return this.cleanCopyOfValue(r,e)}toValueKeyDereference(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)?`value.${e}`:`value['${e.replace(/'/g,"\\'")}']`}}t.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AbstractValidator=void 0;const n=r(45105);const s=r(17085);class AbstractValidator{constructor(e){this.schema=e}testReturningErrors(e){return this.test(e)?null:this.errors(e)}testReturningFirstError(e){const t=this.testReturningErrors(e);if(t===null){return null}const r=t[Symbol.iterator]().next();return r.done?null:r.value}firstError(e){const t=this.errors(e)[Symbol.iterator]();const r=t.next();return r.done?null:r.value}cleanCopyOfValue(e,t){if(e.type==="object"&&typeof t==="object"){const r={};Object.keys(e.properties).forEach((e=>{r[e]=t[e]}));return r}return t}cleanValue(e,t){if(e.type==="object"&&typeof t==="object"){const r=Object.keys(e.properties);Object.getOwnPropertyNames(t).forEach((e=>{if(!r.includes(e)){delete t[e]}}))}}uncompiledAssert(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidAssert)(r,n.Value.Errors(e,t).First())}}uncompiledValidate(e,t,r){if(!n.Value.Check(e,t)){(0,s.throwInvalidValidate)(r,n.Value.Errors(e,t))}}}t.AbstractValidator=AbstractValidator},26498:function(e,t,r){var n=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var o,i;Object.defineProperty(t,"__esModule",{value:true});t.CompilingDiscriminatedUnionValidator=void 0;const a=r(73422);const c=r(893);class CompilingDiscriminatedUnionValidator extends c.AbstractCompilingTypedUnionValidator{constructor(e){var t;super(e);o.set(this,void 0);i.set(this,void 0);n(this,o,(t=this.schema.discriminantKey)!==null&&t!==void 0?t:a.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(e){if(s(this,i,"f")===undefined){const e=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n switch (${this.toValueKeyDereference(s(this,o,"f"))}) {\n`];for(let t=0;t{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKeyIndex=t.MESSAGE_MEMBERS_MISSING_KEY=t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=t.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const n=r(14019);t.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";t.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";t.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";t.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(e){this.schema=e}cacheKeys(){const e=this.schema.anyOf.length;const r=new Set;this.keyByMemberIndex=new Array(e);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(e){return Object.assign(Object.assign({},e),{typeIdentifyingKey:true})}t.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(29293),t);s(r(58453),t);s(r(73422),t);s(r(68589),t);s(r(29539),t);s(r(96388),t);s(r(55776),t)},17085:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.throwInvalidValidate=t.throwInvalidAssert=t.createUnionTypeErrorIterable=t.createUnionTypeError=t.createErrorsIterable=t.adjustErrorMessage=t.DEFAULT_UNKNOWN_TYPE_MESSAGE=t.DEFAULT_OVERALL_MESSAGE=void 0;const n=r(14019);const s=r(65507);const o=r(55776);t.DEFAULT_OVERALL_MESSAGE="Invalid value";t.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const i="Expected required property";function adjustErrorMessage(e){if(e.schema.errorMessage!==undefined){e.message=e.schema.errorMessage}return e}t.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(e){return{[Symbol.iterator]:function*(){const t=e[Symbol.iterator]();let r=t.next();let s="???";while(r.value!==undefined){const e=r.value;const o=e.message;if(e.path!==s){adjustErrorMessage(e);if(e.message!=o){s=e.path;yield e}else if(e.message!=i||["Any","Unknown"].includes(e.schema[n.Kind])){yield e}}r=t.next()}}}}t.createErrorsIterable=createErrorsIterable;function createUnionTypeError(e,r){var n;return{type:s.ValueErrorType.Union,path:"",schema:e,value:r,message:(n=e.errorMessage)!==null&&n!==void 0?n:t.DEFAULT_UNKNOWN_TYPE_MESSAGE}}t.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(e){return{[Symbol.iterator]:function*(){yield e}}}t.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(e,r){adjustErrorMessage(r);throw new o.ValidationException(e===undefined?t.DEFAULT_OVERALL_MESSAGE:e.replace("{error}",o.ValidationException.errorToString(r)),[r])}t.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(e,r){throw new o.ValidationException(e!==null&&e!==void 0?e:t.DEFAULT_OVERALL_MESSAGE,r instanceof s.ValueErrorIterator?[...createErrorsIterable(r)]:[r])}t.throwInvalidValidate=throwInvalidValidate},55776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValidationException=void 0;class ValidationException{constructor(e,t=[]){this.message=e;this.details=t}toString(){let e=this.message;if(this.details.length>0){if(!e.endsWith(":")){e+=":"}for(const t of this.details){e+="\n * "+ValidationException.errorToString(t)}}return e}static errorToString(e){return e.path!=""?`${e.path.substring(1)} - ${e.message}`:e.message}}t.ValidationException=ValidationException},3470:function(e,t,r){var n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var s=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r};var o;Object.defineProperty(t,"__esModule",{value:true});t.CompilingStandardValidator=void 0;const i=r(25269);const a=r(58453);const c=r(17085);class CompilingStandardValidator extends a.AbstractStandardValidator{constructor(e){super(e);o.set(this,void 0)}test(e){const t=this.getCompiledType();return t.Check(e)}assert(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidAssert)(t,r.Errors(e).First())}}validate(e,t){const r=this.getCompiledType();if(!r.Check(e)){(0,c.throwInvalidValidate)(t,r.Errors(e))}}errors(e){const t=this.getCompiledType();return(0,c.createErrorsIterable)(t.Errors(e))}getCompiledType(){if(n(this,o,"f")===undefined){s(this,o,i.TypeCompiler.Compile(this.schema),"f")}return n(this,o,"f")}}t.CompilingStandardValidator=CompilingStandardValidator;o=new WeakMap},68589:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(12491),t);s(r(3470),t)},12491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.StandardValidator=void 0;const n=r(58453);const s=r(45105);const o=r(17085);class StandardValidator extends n.AbstractStandardValidator{constructor(e){super(e)}test(e){return s.Value.Check(this.schema,e)}assert(e,t){this.uncompiledAssert(this.schema,e,t)}validate(e,t){this.uncompiledValidate(this.schema,e,t)}errors(e){return(0,o.createErrorsIterable)(s.Value.Errors(this.schema,e))}}t.StandardValidator=StandardValidator},24371:(e,t,r)=>{const n=r(86197);const s=r(28611);const o=r(68707);const i=r(35076);const a=r(81093);const c=r(59965);const u=r(3440);const{InvalidArgumentError:A}=o;const l=r(56615);const d=r(59136);const p=r(47365);const g=r(47501);const h=r(94004);const m=r(52429);const E=r(22720);const y=r(53573);const{getGlobalDispatcher:I,setGlobalDispatcher:C}=r(32581);const b=r(78840);const B=r(48299);const Q=r(64415);let T;try{r(76982);T=true}catch{T=false}Object.assign(s.prototype,l);e.exports.Dispatcher=s;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=a;e.exports.Agent=c;e.exports.ProxyAgent=E;e.exports.RetryHandler=y;e.exports.DecoratorHandler=b;e.exports.RedirectHandler=B;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=o;function makeDispatcher(e){return(t,r,n)=>{if(typeof r==="function"){n=r;r=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new A("invalid url")}if(r!=null&&typeof r!=="object"){throw new A("invalid opts")}if(r&&r.path!=null){if(typeof r.path!=="string"){throw new A("invalid opts.path")}let e=r.path;if(!r.path.startsWith("/")){e=`/${e}`}t=new URL(u.parseOrigin(t).origin+e)}else{if(!r){r=typeof t==="object"?t:{}}t=u.parseURL(t)}const{agent:s,dispatcher:o=I()}=r;if(s){throw new A("unsupported opts.agent. Did you mean opts.client?")}return e.call(o,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=C;e.exports.getGlobalDispatcher=I;if(u.nodeMajor>16||u.nodeMajor===16&&u.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=r(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=r(26349).Headers;e.exports.Response=r(48676).Response;e.exports.Request=r(25194).Request;e.exports.FormData=r(43073).FormData;e.exports.File=r(63041).File;e.exports.FileReader=r(82160).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:s}=r(75628);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=s;const{CacheStorage:o}=r(44738);const{kConstruct:i}=r(80296);e.exports.caches=new o(i)}if(u.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:s,setCookie:o}=r(53168);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=s;e.exports.setCookie=o;const{parseMIMEType:i,serializeAMimeType:a}=r(94322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=a}if(u.nodeMajor>=18&&T){const{WebSocket:t}=r(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=p;e.exports.MockPool=h;e.exports.MockAgent=g;e.exports.mockErrors=m},59965:(e,t,r)=>{const{InvalidArgumentError:n}=r(68707);const{kClients:s,kRunning:o,kClose:i,kDestroy:a,kDispatch:c,kInterceptors:u}=r(36443);const A=r(50001);const l=r(35076);const d=r(86197);const p=r(3440);const g=r(64415);const{WeakRef:h,FinalizationRegistry:m}=r(13194)();const E=Symbol("onConnect");const y=Symbol("onDisconnect");const I=Symbol("onConnectionError");const C=Symbol("maxRedirections");const b=Symbol("onDrain");const B=Symbol("factory");const Q=Symbol("finalizer");const T=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends A{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...o}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(r&&typeof r!=="function"){r={...r}}this[u]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[g({maxRedirections:t})];this[T]={...p.deepClone(o),connect:r};this[T].interceptors=o.interceptors?{...o.interceptors}:undefined;this[C]=t;this[B]=e;this[s]=new Map;this[Q]=new m((e=>{const t=this[s].get(e);if(t!==undefined&&t.deref()===undefined){this[s].delete(e)}}));const i=this;this[b]=(e,t)=>{i.emit("drain",e,[i,...t])};this[E]=(e,t)=>{i.emit("connect",e,[i,...t])};this[y]=(e,t,r)=>{i.emit("disconnect",e,[i,...t],r)};this[I]=(e,t,r)=>{i.emit("connectionError",e,[i,...t],r)}}get[o](){let e=0;for(const t of this[s].values()){const r=t.deref();if(r){e+=r[o]}}return e}[c](e,t){let r;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){r=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const o=this[s].get(r);let i=o?o.deref():null;if(!i){i=this[B](e.origin,this[T]).on("drain",this[b]).on("connect",this[E]).on("disconnect",this[y]).on("connectionError",this[I]);this[s].set(r,new h(i));this[Q].register(i,r)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[s].values()){const r=t.deref();if(r){e.push(r.close())}}await Promise.all(e)}async[a](e){const t=[];for(const r of this[s].values()){const n=r.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,r)=>{const{addAbortListener:n}=r(3440);const{RequestAbortedError:s}=r(68707);const o=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new s)}}function addSignal(e,t){e[i]=null;e[o]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[o]=()=>{abort(e)};n(e[i],e[o])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[o])}else{e[i].removeListener("abort",e[o])}e[i]=null;e[o]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,r)=>{const{AsyncResource:n}=r(90290);const{InvalidArgumentError:s,RequestAbortedError:o,SocketError:i}=r(68707);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=o||null;this.callback=t;this.abort=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;u(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=connect},76862:(e,t,r)=>{const{Readable:n,Duplex:s,PassThrough:o}=r(2203);const{InvalidArgumentError:i,InvalidReturnValueError:a,RequestAbortedError:c}=r(68707);const u=r(3440);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);const p=r(42613);const g=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[g]=null}_read(){const{[g]:e}=this;if(e){this[g]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[g]=e}_read(){this[g]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new c}t(e)}}class PipelineHandler extends A{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:r,method:n,opaque:o,onInfo:a,responseHeaders:A}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(a&&typeof a!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=o||null;this.responseHeaders=A||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=a||null;this.req=(new PipelineRequest).on("error",u.nop);this.ret=new s({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,r)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){r()}else{n[g]=r}},destroy:(e,t)=>{const{body:r,req:n,res:s,ret:o,abort:i}=this;if(!e&&!o._readableState.endEmitted){e=new c}if(i&&e){i()}u.destroy(r,e);u.destroy(n,e);u.destroy(s,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,r)}onConnect(e,t){const{ret:r,res:n}=this;p(!n,"pipeline cannot be retried");if(r.destroyed){throw new c}this.abort=e;this.context=t}onHeaders(e,t,r){const{opaque:n,handler:s,context:o}=this;if(e<200){if(this.onInfo){const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}this.res=new PipelineResponse(r);let i;try{this.handler=null;const r=this.responseHeaders==="raw"?u.parseRawHeaders(t):u.parseHeaders(t);i=this.runInAsyncScope(s,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:o})}catch(e){this.res.on("error",u.nop);throw e}if(!i||typeof i.on!=="function"){throw new a("expected Readable")}i.on("data",(e=>{const{ret:t,body:r}=this;if(!t.push(e)&&r.pause){r.pause()}})).on("error",(e=>{const{ret:t}=this;u.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){u.destroy(e,new c)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;u.destroy(t,e)}}function pipeline(e,t){try{const r=new PipelineHandler(e,t);this.dispatch({...e,body:r.req},r);return r.ret}catch(e){return(new o).destroy(e)}}e.exports=pipeline},14043:(e,t,r)=>{const n=r(49927);const{InvalidArgumentError:s,RequestAbortedError:o}=r(68707);const i=r(3440);const{getResolveErrorBodyCallback:a}=r(87655);const{AsyncResource:c}=r(90290);const{addSignal:u,removeSignal:A}=r(80158);class RequestHandler extends c{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:r,method:n,opaque:o,body:a,onInfo:c,responseHeaders:A,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new s("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new s("invalid highWaterMark")}if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(a)){i.destroy(a.on("error",i.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=o||null;this.callback=t;this.res=null;this.abort=null;this.body=a;this.trailers={};this.context=null;this.onInfo=c||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(a)){a.on("error",(e=>{this.onError(e)}))}u(this,r)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,r,s){const{callback:o,opaque:c,abort:u,context:A,responseHeaders:l,highWaterMark:d}=this;const p=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:p})}return}const g=l==="raw"?i.parseHeaders(t):p;const h=g["content-type"];const m=new n({resume:r,abort:u,contentType:h,highWaterMark:d});this.callback=null;this.res=m;if(o!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(a,null,{callback:o,body:m,contentType:h,statusCode:e,statusMessage:s,headers:p})}else{this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:m,context:A})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;A(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:s}=this;A(this);if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:s})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,r)=>{request.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,r)=>{const{finished:n,PassThrough:s}=r(2203);const{InvalidArgumentError:o,InvalidReturnValueError:i,RequestAbortedError:a}=r(68707);const c=r(3440);const{getResolveErrorBodyCallback:u}=r(87655);const{AsyncResource:A}=r(90290);const{addSignal:l,removeSignal:d}=r(80158);class StreamHandler extends A{constructor(e,t,r){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:s,opaque:i,body:a,onInfo:u,responseHeaders:A,throwOnError:d}=e;try{if(typeof r!=="function"){throw new o("invalid callback")}if(typeof t!=="function"){throw new o("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new o("invalid method")}if(u&&typeof u!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(c.isStream(a)){c.destroy(a.on("error",c.nop),e)}throw e}this.responseHeaders=A||null;this.opaque=i||null;this.factory=t;this.callback=r;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=a;this.onInfo=u||null;this.throwOnError=d||false;if(c.isStream(a)){a.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new a}this.abort=e;this.context=t}onHeaders(e,t,r,o){const{factory:a,opaque:A,context:l,callback:d,responseHeaders:p}=this;const g=p==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}this.factory=null;let h;if(this.throwOnError&&e>=400){const r=p==="raw"?c.parseHeaders(t):g;const n=r["content-type"];h=new s;this.callback=null;this.runInAsyncScope(u,null,{callback:d,body:h,contentType:n,statusCode:e,statusMessage:o,headers:g})}else{if(a===null){return}h=this.runInAsyncScope(a,null,{statusCode:e,headers:g,opaque:A,context:l});if(!h||typeof h.write!=="function"||typeof h.end!=="function"||typeof h.on!=="function"){throw new i("expected Writable")}n(h,{readable:false},(e=>{const{callback:t,res:r,opaque:n,trailers:s,abort:o}=this;this.res=null;if(e||!r.readable){c.destroy(r,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:s});if(e){o()}}))}h.on("drain",r);this.res=h;const m=h.writableNeedDrain!==undefined?h.writableNeedDrain:h._writableState&&h._writableState.needDrain;return m!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=c.parseHeaders(e);t.end()}onError(e){const{res:t,callback:r,opaque:n,body:s}=this;d(this);this.factory=null;if(t){this.res=null;c.destroy(t,e)}else if(r){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}if(s){this.body=null;c.destroy(s,e)}}}function stream(e,t,r){if(r===undefined){return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if(typeof r!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}e.exports=stream},61882:(e,t,r)=>{const{InvalidArgumentError:n,RequestAbortedError:s,SocketError:o}=r(68707);const{AsyncResource:i}=r(90290);const a=r(3440);const{addSignal:c,removeSignal:u}=r(80158);const A=r(42613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:r,opaque:s,responseHeaders:o}=e;if(r&&typeof r.on!=="function"&&typeof r.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=o||null;this.opaque=s||null;this.callback=t;this.abort=null;this.context=null;c(this,r)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=null}onHeaders(){throw new o("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:s,context:o}=this;A.strictEqual(e,101);u(this);this.callback=null;const i=this.responseHeaders==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:r,opaque:s,context:o})}onError(e){const{callback:t,opaque:r}=this;u(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}))}try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if(typeof t!=="function"){throw r}const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}e.exports=upgrade},56615:(e,t,r)=>{e.exports.request=r(14043);e.exports.stream=r(3560);e.exports.pipeline=r(76862);e.exports.upgrade=r(61882);e.exports.connect=r(34660)},49927:(e,t,r)=>{const n=r(42613);const{Readable:s}=r(2203);const{RequestAbortedError:o,NotSupportedError:i,InvalidArgumentError:a}=r(68707);const c=r(3440);const{ReadableStreamFrom:u,toUSVString:A}=r(3440);let l;const d=Symbol("kConsume");const p=Symbol("kReading");const g=Symbol("kBody");const h=Symbol("abort");const m=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends s{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[h]=t;this[d]=null;this[g]=null;this[m]=r;this[p]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new o}if(e){this[h]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[p]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);if(e==="data"||e==="readable"){this[p]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return r}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[p]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return c.isDisturbed(this)}get body(){if(!this[g]){this[g]=u(this);if(this[d]){this[g].getReader();n(this[g].locked)}}return this[g]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal;if(r){try{if(typeof r!=="object"||!("aborted"in r)){throw new a("signal must be an AbortSignal")}c.throwIfAborted(r)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,n)=>{const s=r?c.addAbortListener(r,(()=>{this.destroy()})):noop;this.on("close",(function(){s();if(r&&r.aborted){n(r.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[g]&&e[g].locked===true||e[d]}function isUnusable(e){return c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((r,n)=>{e[d]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new o)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const r of t.buffer){consumePush(e,r)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:s,stream:o,length:i}=e;try{if(t==="text"){s(A(Buffer.concat(n)))}else if(t==="json"){s(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const r of n){e.set(r,t);t+=r.byteLength}s(e.buffer)}else if(t==="blob"){if(!l){l=r(20181).Blob}s(new l(n,{type:o[m]}))}consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,r)=>{const n=r(42613);const{ResponseStatusCodeError:s}=r(68707);const{toUSVString:o}=r(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:r,statusCode:i,statusMessage:a,headers:c}){n(t);let u=[];let A=0;for await(const e of t){u.push(e);A+=e.length;if(A>128*1024){u=null;break}}if(i===204||!r||!u){process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c));return}try{if(r.startsWith("application/json")){const t=JSON.parse(o(Buffer.concat(u)));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}if(r.startsWith("text/")){const t=o(Buffer.concat(u));process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c,t));return}}catch(e){}process.nextTick(e,new s(`Response status code ${i}${a?`: ${a}`:""}`,i,c))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,r)=>{const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:s}=r(68707);const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:c,kRemoveClient:u,kGetDispatcher:A}=r(58640);const l=r(35076);const{kUrl:d,kInterceptors:p}=r(36443);const{parseOrigin:g}=r(3440);const h=Symbol("factory");const m=Symbol("options");const E=Symbol("kGreatestCommonDivisor");const y=Symbol("kCurrentWeight");const I=Symbol("kIndex");const C=Symbol("kWeight");const b=Symbol("kMaxWeightPerServer");const B=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends o{constructor(e=[],{factory:t=defaultFactory,...r}={}){super();this[m]=r;this[I]=-1;this[y]=0;this[b]=this[m].maxWeightPerServer||100;this[B]=this[m].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new s("factory must be a function.")}this[p]=r.interceptors&&r.interceptors.BalancedPool&&Array.isArray(r.interceptors.BalancedPool)?r.interceptors.BalancedPool:[];this[h]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=g(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const r=this[h](t,Object.assign({},this[m]));this[c](r);r.on("connect",(()=>{r[C]=Math.min(this[b],r[C]+this[B])}));r.on("connectionError",(()=>{r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}));r.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){r[C]=Math.max(1,r[C]-this[B]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[C]=this[b]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[E]=this[i].map((e=>e[C])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=g(e).origin;const r=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(r){this[u](r)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[A](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[a]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[a])).reduce(((e,t)=>e&&t),true);if(t){return}let r=0;let s=this[i].findIndex((e=>!e[a]));while(r++this[i][s][C]&&!e[a]){s=this[I]}if(this[I]===0){this[y]=this[y]-this[E];if(this[y]<=0){this[y]=this[b]}}if(e[C]>=this[y]&&!e[a]){return e}}this[y]=this[i][s][C];this[I]=s;return this[i][s]}}e.exports=BalancedPool},50479:(e,t,r)=>{const{kConstruct:n}=r(80296);const{urlEquals:s,fieldValues:o}=r(23993);const{kEnumerableProperty:i,isDisturbed:a}=r(3440);const{kHeadersList:c}=r(36443);const{webidl:u}=r(74222);const{Response:A,cloneResponse:l}=r(48676);const{Request:d}=r(25194);const{kState:p,kHeaders:g,kGuard:h,kRealm:m}=r(89710);const{fetching:E}=r(12315);const{urlIsHttpHttpsScheme:y,createDeferredPromise:I,readAllBytes:C}=r(15523);const b=r(42613);const{getGlobalDispatcher:B}=r(32581);class Cache{#e;constructor(){if(arguments[0]!==n){u.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(r.length===0){return}return r[0]}async matchAll(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(r,t);for(const t of e){n.push(t[1])}}const s=[];for(const e of n){const t=new A(e.body?.source??null);const r=t[p].body;t[p]=e;t[p].body=r;t[g][c]=e.headersList;t[g][h]="immutable";s.push(t)}return Object.freeze(s)}async add(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=u.converters.RequestInfo(e);const t=[e];const r=this.addAll(t);return await r}async addAll(e){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=u.converters["sequence"](e);const t=[];const r=[];for(const t of e){if(typeof t==="string"){continue}const e=t[p];if(!y(e.url)||e.method!=="GET"){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const s of e){const e=new d(s)[p];if(!y(e.url)){throw u.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";r.push(e);const i=I();n.push(E({request:e,dispatcher:B(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(u.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=o(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(u.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const s=Promise.all(t);const i=await s;const a=[];let c=0;for(const e of i){const t={type:"put",request:r[c],response:e};a.push(t);c++}const A=I();let l=null;try{this.#r(a)}catch(e){l=e}queueMicrotask((()=>{if(l===null){A.resolve(undefined)}else{A.reject(l)}}));return A.promise}async put(e,t){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=u.converters.RequestInfo(e);t=u.converters.Response(t);let r=null;if(e instanceof d){r=e[p]}else{r=new d(e)[p]}if(!y(r.url)||r.method!=="GET"){throw u.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[p];if(n.status===206){throw u.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=o(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw u.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(a(n.body.stream)||n.body.stream.locked)){throw u.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const s=l(n);const i=I();if(n.body!=null){const e=n.body.stream;const t=e.getReader();C(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const c=[];const A={type:"put",request:r,response:s};c.push(A);const g=await i.promise;if(s.body!=null){s.body.source=g}const h=I();let m=null;try{this.#r(c)}catch(e){m=e}queueMicrotask((()=>{if(m===null){h.resolve()}else{h.reject(m)}}));return h.promise}async delete(e,t={}){u.brandCheck(this,Cache);u.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return false}}else{b(typeof e==="string");r=new d(e)[p]}const n=[];const s={type:"delete",request:r,options:t};n.push(s);const o=I();let i=null;let a;try{a=this.#r(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){o.resolve(!!a?.length)}else{o.reject(i)}}));return o.promise}async keys(e=undefined,t={}){u.brandCheck(this,Cache);if(e!==undefined)e=u.converters.RequestInfo(e);t=u.converters.CacheQueryOptions(t);let r=null;if(e!==undefined){if(e instanceof d){r=e[p];if(r.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){r=new d(e)[p]}}const n=I();const s=[];if(e===undefined){for(const e of this.#e){s.push(e[0])}}else{const e=this.#t(r,t);for(const t of e){s.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of s){const r=new d("https://a");r[p]=t;r[g][c]=t.headersList;r[g][h]="immutable";r[m]=t.client;e.push(r)}n.resolve(Object.freeze(e))}));return n.promise}#r(e){const t=this.#e;const r=[...t];const n=[];const s=[];try{for(const r of e){if(r.type!=="delete"&&r.type!=="put"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(r.type==="delete"&&r.response!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(r.request,r.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(r.type==="delete"){e=this.#t(r.request,r.options);if(e.length===0){return[]}for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}}else if(r.type==="put"){if(r.response==null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const s=r.request;if(!y(s.url)){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(s.method!=="GET"){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(r.options!=null){throw u.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);b(e!==-1);t.splice(e,1)}t.push([r.request,r.response]);n.push([r.request,r.response])}s.push([r.request,r.response])}return s}catch(e){this.#e.length=0;this.#e=r;throw e}}#t(e,t,r){const n=[];const s=r??this.#e;for(const r of s){const[s,o]=r;if(this.#n(e,s,o,t)){n.push(r)}}return n}#n(e,t,r=null,n){const i=new URL(e.url);const a=new URL(t.url);if(n?.ignoreSearch){a.search="";i.search=""}if(!s(i,a,true)){return false}if(r==null||n?.ignoreVary||!r.headersList.contains("vary")){return true}const c=o(r.headersList.get("vary"));for(const r of c){if(r==="*"){return false}const n=t.headersList.get(r);const s=e.headersList.get(r);if(n!==s){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const Q=[{key:"ignoreSearch",converter:u.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:u.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:u.converters.boolean,defaultValue:false}];u.converters.CacheQueryOptions=u.dictionaryConverter(Q);u.converters.MultiCacheQueryOptions=u.dictionaryConverter([...Q,{key:"cacheName",converter:u.converters.DOMString}]);u.converters.Response=u.interfaceConverter(A);u.converters["sequence"]=u.sequenceConverter(u.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,r)=>{const{kConstruct:n}=r(80296);const{Cache:s}=r(50479);const{webidl:o}=r(74222);const{kEnumerableProperty:i}=r(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==n){o.illegalConstructor()}}async match(e,t={}){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=o.converters.RequestInfo(e);t=o.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#s.has(t.cacheName)){const r=this.#s.get(t.cacheName);const o=new s(n,r);return await o.match(e,t)}}else{for(const r of this.#s.values()){const o=new s(n,r);const i=await o.match(e,t);if(i!==undefined){return i}}}}async has(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=o.converters.DOMString(e);return this.#s.has(e)}async open(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=o.converters.DOMString(e);if(this.#s.has(e)){const t=this.#s.get(e);return new s(n,t)}const t=[];this.#s.set(e,t);return new s(n,t)}async delete(e){o.brandCheck(this,CacheStorage);o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=o.converters.DOMString(e);return this.#s.delete(e)}async keys(){o.brandCheck(this,CacheStorage);const e=this.#s.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},80296:(e,t,r)=>{e.exports={kConstruct:r(36443).kConstruct}},23993:(e,t,r)=>{const n=r(42613);const{URLSerializer:s}=r(94322);const{isValidHeaderName:o}=r(15523);function urlEquals(e,t,r=false){const n=s(e,r);const o=s(t,r);return n===o}function fieldValues(e){n(e!==null);const t=[];for(let r of e.split(",")){r=r.trim();if(!r.length){continue}else if(!o(r)){continue}t.push(r)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,r)=>{const n=r(42613);const s=r(69278);const o=r(58611);const{pipeline:i}=r(2203);const a=r(3440);const c=r(28804);const u=r(44655);const A=r(50001);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:p,RequestAbortedError:g,HeadersTimeoutError:h,HeadersOverflowError:m,SocketError:E,InformationalError:y,BodyTimeoutError:I,HTTPParserError:C,ResponseExceededMaxSizeError:b,ClientDestroyedError:B}=r(68707);const Q=r(59136);const{kUrl:T,kReset:v,kServerName:w,kClient:_,kBusy:O,kParser:k,kConnect:R,kBlocking:S,kResuming:F,kRunning:D,kPending:N,kSize:P,kWriting:L,kQueue:U,kConnected:M,kConnecting:x,kNeedDrain:G,kNoRef:j,kKeepAliveDefaultTimeout:V,kHostHeader:H,kPendingIdx:q,kRunningIdx:Y,kError:K,kPipelining:J,kSocket:$,kKeepAliveTimeoutValue:W,kMaxHeadersSize:z,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:re,kConnector:ne,kMaxRedirections:se,kMaxRequests:oe,kCounter:ie,kClose:ae,kDestroy:ce,kDispatch:ue,kInterceptors:Ae,kLocalAddress:le,kMaxResponseSize:de,kHTTPConnVersion:pe,kHost:fe,kHTTP2Session:ge,kHTTP2SessionState:he,kHTTP2BuildRequest:me,kHTTP2CopyHeaders:Ee,kHTTP1BuildRequest:ye}=r(36443);let Ie;try{Ie=r(85675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ce,HTTP2_HEADER_METHOD:be,HTTP2_HEADER_PATH:Be,HTTP2_HEADER_SCHEME:Qe,HTTP2_HEADER_CONTENT_LENGTH:Te,HTTP2_HEADER_EXPECT:ve,HTTP2_HEADER_STATUS:we}}=Ie;let _e=false;const Oe=Buffer[Symbol.species];const ke=Symbol("kClosedResolve");const Re={};try{const e=r(31637);Re.sendHeaders=e.channel("undici:client:sendHeaders");Re.beforeConnect=e.channel("undici:client:beforeConnect");Re.connectError=e.channel("undici:client:connectError");Re.connected=e.channel("undici:client:connected")}catch{Re.sendHeaders={hasSubscribers:false};Re.beforeConnect={hasSubscribers:false};Re.connectError={hasSubscribers:false};Re.connected={hasSubscribers:false}}class Client extends A{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:i,requestTimeout:c,connectTimeout:u,bodyTimeout:A,idleTimeout:l,keepAlive:d,keepAliveTimeout:g,maxKeepAliveTimeout:h,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:E,socketPath:y,pipelining:I,tls:C,strictContentLength:b,maxCachedSessions:B,maxRedirections:v,connect:_,maxRequestsPerClient:O,localAddress:k,maxResponseSize:R,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D,allowH2:N,maxConcurrentStreams:P}={}){super();if(d!==undefined){throw new p("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new p("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(c!==undefined){throw new p("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new p("unsupported idleTimeout, use keepAliveTimeout instead")}if(h!==undefined){throw new p("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(r!=null&&!Number.isFinite(r)){throw new p("invalid maxHeaderSize")}if(y!=null&&typeof y!=="string"){throw new p("invalid socketPath")}if(u!=null&&(!Number.isFinite(u)||u<0)){throw new p("invalid connectTimeout")}if(g!=null&&(!Number.isFinite(g)||g<=0)){throw new p("invalid keepAliveTimeout")}if(m!=null&&(!Number.isFinite(m)||m<=0)){throw new p("invalid keepAliveMaxTimeout")}if(E!=null&&!Number.isFinite(E)){throw new p("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new p("headersTimeout must be a positive integer or zero")}if(A!=null&&(!Number.isInteger(A)||A<0)){throw new p("bodyTimeout must be a positive integer or zero")}if(_!=null&&typeof _!=="function"&&typeof _!=="object"){throw new p("connect must be a function or an object")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new p("maxRedirections must be a positive number")}if(O!=null&&(!Number.isInteger(O)||O<0)){throw new p("maxRequestsPerClient must be a positive number")}if(k!=null&&(typeof k!=="string"||s.isIP(k)===0)){throw new p("localAddress must be valid string IP address")}if(R!=null&&(!Number.isInteger(R)||R<-1)){throw new p("maxResponseSize must be a positive number")}if(D!=null&&(!Number.isInteger(D)||D<-1)){throw new p("autoSelectFamilyAttemptTimeout must be a positive number")}if(N!=null&&typeof N!=="boolean"){throw new p("allowH2 must be a valid boolean value")}if(P!=null&&(typeof P!=="number"||P<1)){throw new p("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof _!=="function"){_=Q({...C,maxCachedSessions:B,allowH2:N,socketPath:y,timeout:u,...a.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:D}:undefined,..._})}this[Ae]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Fe({maxRedirections:v})];this[T]=a.parseOrigin(e);this[ne]=_;this[$]=null;this[J]=I!=null?I:1;this[z]=r||o.maxHeaderSize;this[V]=g==null?4e3:g;this[Z]=m==null?6e5:m;this[X]=E==null?1e3:E;this[W]=this[V];this[w]=null;this[le]=k!=null?k:null;this[F]=0;this[G]=0;this[H]=`host: ${this[T].hostname}${this[T].port?`:${this[T].port}`:""}\r\n`;this[te]=A!=null?A:3e5;this[ee]=n!=null?n:3e5;this[re]=b==null?true:b;this[se]=v;this[oe]=O;this[ke]=null;this[de]=R>-1?R:-1;this[pe]="h1";this[ge]=null;this[he]=!N?null:{openStreams:0,maxConcurrentStreams:P!=null?P:100};this[fe]=`${this[T].hostname}${this[T].port?`:${this[T].port}`:""}`;this[U]=[];this[Y]=0;this[q]=0}get pipelining(){return this[J]}set pipelining(e){this[J]=e;resume(this,true)}get[N](){return this[U].length-this[q]}get[D](){return this[q]-this[Y]}get[P](){return this[U].length-this[Y]}get[M](){return!!this[$]&&!this[x]&&!this[$].destroyed}get[O](){const e=this[$];return e&&(e[v]||e[L]||e[S])||this[P]>=(this[J]||1)||this[N]>0}[R](e){connect(this);this.once("connect",e)}[ue](e,t){const r=e.origin||this[T].origin;const n=this[pe]==="h2"?u[me](r,e,t):u[ye](r,e,t);this[U].push(n);if(this[F]){}else if(a.bodyLength(n.body)==null&&a.isIterable(n.body)){this[F]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[F]&&this[G]!==2&&this[O]){this[G]=2}return this[G]<2}async[ae](){return new Promise((e=>{if(!this[P]){e(null)}else{this[ke]=e}}))}async[ce](e){return new Promise((t=>{const r=this[U].splice(this[q]);for(let t=0;t{if(this[ke]){this[ke]();this[ke]=null}t()};if(this[ge]!=null){a.destroy(this[ge],e);this[ge]=null;this[he]=null}if(!this[$]){queueMicrotask(callback)}else{a.destroy(this[$].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[$][K]=e;onError(this[_],e)}function onHttp2FrameError(e,t,r){const n=new y(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(r===0){this[$][K]=n;onError(this[_],n)}}function onHttp2SessionEnd(){a.destroy(this,new E("other side closed"));a.destroy(this[$],new E("other side closed"))}function onHTTP2GoAway(e){const t=this[_];const r=new y(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[$]=null;t[ge]=null;if(t.destroyed){n(this[N]===0);const e=t[U].splice(t[Y]);for(let t=0;t0){const e=t[U][t[Y]];t[U][t[Y]++]=null;errorRequest(t,e,r)}t[q]=t[Y];n(t[D]===0);t.emit("disconnect",t[T],[t],r);resume(t)}const Se=r(52824);const Fe=r(64415);const De=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?r(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(r(53434),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||r(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onStatus(new Oe(Ue.buffer,s,r))||0},wasm_on_message_begin:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageBegin()||0},wasm_on_header_field:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderField(new Oe(Ue.buffer,s,r))||0},wasm_on_header_value:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onHeaderValue(new Oe(Ue.buffer,s,r))||0},wasm_on_headers_complete:(e,t,r,s)=>{n.strictEqual(Le.ptr,e);return Le.onHeadersComplete(t,Boolean(r),Boolean(s))||0},wasm_on_body:(e,t,r)=>{n.strictEqual(Le.ptr,e);const s=t-xe+Ue.byteOffset;return Le.onBody(new Oe(Ue.buffer,s,r))||0},wasm_on_message_complete:e=>{n.strictEqual(Le.ptr,e);return Le.onMessageComplete()||0}}})}let Ne=null;let Pe=lazyllhttp();Pe.catch();let Le=null;let Ue=null;let Me=0;let xe=null;const Ge=1;const je=2;const Ve=3;class Parser{constructor(e,t,{exports:r}){n(Number.isFinite(e[z])&&e[z]>0);this.llhttp=r;this.ptr=this.llhttp.llhttp_alloc(Se.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[z];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[de]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){c.clearTimeout(this.timeout);if(e){this.timeout=c.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||De);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Le==null);n(!this.paused);const{socket:t,llhttp:r}=this;if(e.length>Me){if(xe){r.free(xe)}Me=Math.ceil(e.length/4096)*4096;xe=r.malloc(Me)}new Uint8Array(r.memory.buffer,xe,Me).set(e);try{let n;try{Ue=e;Le=this;n=r.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Le=null;Ue=null}const s=r.llhttp_get_error_pos(this.ptr)-xe;if(n===Se.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(s))}else if(n===Se.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(s))}else if(n!==Se.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let o="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new C(o,Se.ERROR[n],e.slice(s))}}catch(e){a.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Le==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;c.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const r=t[U][t[Y]];if(!r){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const r=this.headers[t-2];if(r.length===10&&r.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(r.length===10&&r.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(r.length===14&&r.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){a.destroy(this.socket,new m)}}onUpgrade(e){const{upgrade:t,client:r,socket:s,headers:o,statusCode:i}=this;n(t);const c=r[U][r[Y]];n(c);n(!s.destroyed);n(s===r[$]);n(!this.paused);n(c.upgrade||c.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;s.unshift(e);s[k].destroy();s[k]=null;s[_]=null;s[K]=null;s.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);r[$]=null;r[U][r[Y]++]=null;r.emit("disconnect",r[T],[r],new y("upgrade"));try{c.onUpgrade(i,o,s)}catch(e){a.destroy(s,e)}resume(r)}onHeadersComplete(e,t,r){const{client:s,socket:o,headers:i,statusText:c}=this;if(o.destroyed){return-1}const u=s[U][s[Y]];if(!u){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){a.destroy(o,new E("bad response",a.getSocketInfo(o)));return-1}if(t&&!u.upgrade){a.destroy(o,new E("bad upgrade",a.getSocketInfo(o)));return-1}n.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=r||u.method==="HEAD"&&!o[v]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=u.bodyTimeout!=null?u.bodyTimeout:s[te];this.setTimeout(e,je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(u.method==="CONNECT"){n(s[D]===1);this.upgrade=true;return 2}if(t){n(s[D]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&s[J]){const e=this.keepAlive?a.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-s[X],s[Z]);if(t<=0){o[v]=true}else{s[W]=t}}else{s[W]=s[V]}}else{o[v]=true}const A=u.onHeaders(e,i,this.resume,c)===false;if(u.aborted){return-1}if(u.method==="HEAD"){return 1}if(e<200){return 1}if(o[S]){o[S]=false;resume(s)}return A?Se.ERROR.PAUSED:0}onBody(e){const{client:t,socket:r,statusCode:s,maxResponseSize:o}=this;if(r.destroyed){return-1}const i=t[U][t[Y]];n(i);n.strictEqual(this.timeoutType,je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(s>=200);if(o>-1&&this.bytesRead+e.length>o){a.destroy(r,new b);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Se.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:s,headers:o,contentLength:i,bytesRead:c,shouldKeepAlive:u}=this;if(t.destroyed&&(!r||u)){return-1}if(s){return}const A=e[U][e[Y]];n(A);n(r>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(r<200){return}if(A.method!=="HEAD"&&i&&c!==parseInt(i,10)){a.destroy(t,new d);return-1}A.onComplete(o);e[U][e[Y]++]=null;if(t[L]){n.strictEqual(e[D],0);a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(!u){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(t[v]&&e[D]===0){a.destroy(t,new y("reset"));return Se.ERROR.PAUSED}else if(e[J]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:s}=e;if(r===Ge){if(!t[L]||t.writableNeedDrain||s[D]>1){n(!e.paused,"cannot be paused while waiting for headers");a.destroy(t,new h)}}else if(r===je){if(!e.paused){a.destroy(t,new I)}}else if(r===Ve){n(s[D]===0&&s[W]);a.destroy(t,new y("socket idle timeout"))}}function onSocketReadable(){const{[k]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[_]:t,[k]:r}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[pe]!=="h2"){if(e.code==="ECONNRESET"&&r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}}this[K]=e;onError(this[_],e)}function onError(e,t){if(e[D]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[q]===e[Y]);const r=e[U].splice(e[Y]);for(let n=0;n0&&r.code!=="UND_ERR_INFO"){const t=e[U][e[Y]];e[U][e[Y]++]=null;errorRequest(e,t,r)}e[q]=e[Y];n(e[D]===0);e.emit("disconnect",e[T],[e],r);resume(e)}async function connect(e){n(!e[x]);n(!e[$]);let{host:t,hostname:r,protocol:o,port:i}=e[T];if(r[0]==="["){const e=r.indexOf("]");n(e!==-1);const t=r.substring(1,e);n(s.isIP(t));r=t}e[x]=true;if(Re.beforeConnect.hasSubscribers){Re.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne]})}try{const s=await new Promise(((n,s)=>{e[ne]({host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},((e,t)=>{if(e){s(e)}else{n(t)}}))}));if(e.destroyed){a.destroy(s.on("error",(()=>{})),new B);return}e[x]=false;n(s);const c=s.alpnProtocol==="h2";if(c){if(!_e){_e=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[T],{createConnection:()=>s,peerMaxConcurrentStreams:e[he].maxConcurrentStreams});e[pe]="h2";t[_]=e;t[$]=s;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[ge]=t;s[ge]=t}else{if(!Ne){Ne=await Pe;Pe=null}s[j]=false;s[L]=false;s[v]=false;s[S]=false;s[k]=new Parser(e,s,Ne)}s[ie]=0;s[oe]=e[oe];s[_]=e;s[K]=null;s.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[$]=s;if(Re.connected.hasSubscribers){Re.connected.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],socket:s})}e.emit("connect",e[T],[e])}catch(s){if(e.destroyed){return}e[x]=false;if(Re.connectError.hasSubscribers){Re.connectError.publish({connectParams:{host:t,hostname:r,protocol:o,port:i,servername:e[w],localAddress:e[le]},connector:e[ne],error:s})}if(s.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[D]===0);while(e[N]>0&&e[U][e[q]].servername===e[w]){const t=e[U][e[q]++];errorRequest(e,t,s)}}else{onError(e,s)}e.emit("connectionError",e[T],[e],s)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[T],[e])}function resume(e,t){if(e[F]===2){return}e[F]=2;_resume(e,t);e[F]=0;if(e[Y]>256){e[U].splice(0,e[Y]);e[q]-=e[Y];e[Y]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[N]===0);return}if(e[ke]&&!e[P]){e[ke]();e[ke]=null;return}const r=e[$];if(r&&!r.destroyed&&r.alpnProtocol!=="h2"){if(e[P]===0){if(!r[j]&&r.unref){r.unref();r[j]=true}}else if(r[j]&&r.ref){r.ref();r[j]=false}if(e[P]===0){if(r[k].timeoutType!==Ve){r[k].setTimeout(e[W],Ve)}}else if(e[D]>0&&r[k].statusCode<200){if(r[k].timeoutType!==Ge){const t=e[U][e[Y]];const n=t.headersTimeout!=null?t.headersTimeout:e[ee];r[k].setTimeout(n,Ge)}}}if(e[O]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[N]===0){return}if(e[D]>=(e[J]||1)){return}const s=e[U][e[q]];if(e[T].protocol==="https:"&&e[w]!==s.servername){if(e[D]>0){return}e[w]=s.servername;if(r&&r.servername!==s.servername){a.destroy(r,new y("servername changed"));return}}if(e[x]){return}if(!r&&!e[ge]){connect(e);return}if(r.destroyed||r[L]||r[v]||r[S]){return}if(e[D]>0&&!s.idempotent){return}if(e[D]>0&&(s.upgrade||s.method==="CONNECT")){return}if(e[D]>0&&a.bodyLength(s.body)!==0&&(a.isStream(s.body)||a.isAsyncIterable(s.body))){return}if(!s.aborted&&write(e,s)){e[q]++}else{e[U].splice(e[q],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[pe]==="h2"){writeH2(e,e[ge],t);return}const{body:r,method:s,path:o,host:i,upgrade:c,headers:u,blocking:A,reset:d}=t;const p=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}const h=a.bodyLength(r);let m=h;if(m===null){m=t.contentLength}if(m===0&&!p){m=null}if(shouldSendContentLength(s)&&m>0&&t.contentLength!==null&&t.contentLength!==m){if(e[re]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const E=e[$];try{t.onConnect((r=>{if(t.aborted||t.completed){return}errorRequest(e,t,r||new g);a.destroy(E,new y("aborted"))}))}catch(r){errorRequest(e,t,r)}if(t.aborted){return false}if(s==="HEAD"){E[v]=true}if(c||s==="CONNECT"){E[v]=true}if(d!=null){E[v]=d}if(e[oe]&&E[ie]++>=e[oe]){E[v]=true}if(A){E[S]=true}let I=`${s} ${o} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[H]}if(c){I+=`connection: upgrade\r\nupgrade: ${c}\r\n`}else if(e[J]&&!E[v]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(u){I+=u}if(Re.sendHeaders.hasSubscribers){Re.sendHeaders.publish({request:t,headers:I,socket:E})}if(!r||h===0){if(m===0){E.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{n(m===null,"no body must not have content length");E.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(a.isBuffer(r)){n(m===r.byteLength,"buffer body must have content length");E.cork();E.write(`${I}content-length: ${m}\r\n\r\n`,"latin1");E.write(r);E.uncork();t.onBodySent(r);t.onRequestSent();if(!p){E[v]=true}}else if(a.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({body:r.stream(),client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{writeBlob({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}}else if(a.isStream(r)){writeStream({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else if(a.isIterable(r)){writeIterable({body:r,client:e,request:t,socket:E,contentLength:m,header:I,expectsPayload:p})}else{n(false)}return true}function writeH2(e,t,r){const{body:s,method:o,path:i,host:c,upgrade:A,expectContinue:d,signal:p,headers:h}=r;let m;if(typeof h==="string")m=u[Ee](h.trim());else m=h;if(A){errorRequest(e,r,new Error("Upgrade not supported for H2"));return false}try{r.onConnect((t=>{if(r.aborted||r.completed){return}errorRequest(e,r,t||new g)}))}catch(t){errorRequest(e,r,t)}if(r.aborted){return false}let E;const I=e[he];m[Ce]=c||e[fe];m[be]=o;if(o==="CONNECT"){t.ref();E=t.request(m,{endStream:false,signal:p});if(E.id&&!E.pending){r.onUpgrade(null,null,E);++I.openStreams}else{E.once("ready",(()=>{r.onUpgrade(null,null,E);++I.openStreams}))}E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}m[Be]=i;m[Qe]="https";const C=o==="PUT"||o==="POST"||o==="PATCH";if(s&&typeof s.read==="function"){s.read(0)}let b=a.bodyLength(s);if(b==null){b=r.contentLength}if(b===0||!C){b=null}if(shouldSendContentLength(o)&&b>0&&r.contentLength!=null&&r.contentLength!==b){if(e[re]){errorRequest(e,r,new l);return false}process.emitWarning(new l)}if(b!=null){n(s,"no body must not have content length");m[Te]=`${b}`}t.ref();const B=o==="GET"||o==="HEAD";if(d){m[ve]="100-continue";E=t.request(m,{endStream:B,signal:p});E.once("continue",writeBodyH2)}else{E=t.request(m,{endStream:B,signal:p});writeBodyH2()}++I.openStreams;E.once("response",(e=>{const{[we]:t,...n}=e;if(r.onHeaders(Number(t),n,E.resume.bind(E),"")===false){E.pause()}}));E.once("end",(()=>{r.onComplete([])}));E.on("data",(e=>{if(r.onData(e)===false){E.pause()}}));E.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));E.once("error",(function(t){if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,t)}}));E.once("frameError",((t,n)=>{const s=new y(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,s);if(e[ge]&&!e[ge].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;a.destroy(E,s)}}));return true;function writeBodyH2(){if(!s){r.onRequestSent()}else if(a.isBuffer(s)){n(b===s.byteLength,"buffer body must have content length");E.cork();E.write(s);E.uncork();E.end();r.onBodySent(s);r.onRequestSent()}else if(a.isBlobLike(s)){if(typeof s.stream==="function"){writeIterable({client:e,request:r,contentLength:b,h2stream:E,expectsPayload:C,body:s.stream(),socket:e[$],header:""})}else{writeBlob({body:s,client:e,request:r,contentLength:b,expectsPayload:C,h2stream:E,header:"",socket:e[$]})}}else if(a.isStream(s)){writeStream({body:s,client:e,request:r,contentLength:b,expectsPayload:C,socket:e[$],h2stream:E,header:""})}else if(a.isIterable(s)){writeIterable({body:s,client:e,request:r,contentLength:b,expectsPayload:C,header:"",h2stream:E,socket:e[$]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:c,header:u,expectsPayload:A}){n(c!==0||r[D]===0,"stream body cannot be pipelined");if(r[pe]==="h2"){const p=i(t,e,(r=>{if(r){a.destroy(t,r);a.destroy(e,r)}else{s.onRequestSent()}}));p.on("data",onPipeData);p.once("end",(()=>{p.removeListener("data",onPipeData);a.destroy(p)}));function onPipeData(e){s.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:o,request:s,contentLength:c,client:r,expectsPayload:A,header:u});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){a.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){if(l){return}const e=new g;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(l){return}l=true;n(o.destroyed||o[L]&&r[D]<=1);o.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){a.destroy(t,e)}else{a.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}o.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:c,expectsPayload:u}){n(i===t.size,"blob body must have content length");const A=r[pe]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(A){e.cork();e.write(n);e.uncork()}else{o.cork();o.write(`${c}content-length: ${i}\r\n\r\n`,"latin1");o.write(n);o.uncork()}s.onBodySent(n);s.onRequestSent();if(!u){o[v]=true}resume(r)}catch(t){a.destroy(A?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:s,socket:o,contentLength:i,header:a,expectsPayload:c}){n(i!==0||r[D]===0,"iterator body cannot be pipelined");let u=null;function onDrain(){if(u){const e=u;u=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(u===null);if(o[K]){t(o[K])}else{u=e}}));if(r[pe]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const r of t){if(o[K]){throw o[K]}const t=e.write(r);s.onBodySent(r);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{s.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}o.on("close",onDrain).on("drain",onDrain);const A=new AsyncWriter({socket:o,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(const e of t){if(o[K]){throw o[K]}if(!A.write(e)){await waitForDrain()}}A.end()}catch(e){A.destroy(e)}finally{o.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:s,header:o}){this.socket=e;this.request=t;this.contentLength=r;this.client=n;this.bytesWritten=0;this.expectsPayload=s;this.header=o;e[L]=true}write(e){const{socket:t,request:r,contentLength:n,client:s,bytesWritten:o,expectsPayload:i,header:a}=this;if(t[K]){throw t[K]}if(t.destroyed){return false}const c=Buffer.byteLength(e);if(!c){return true}if(n!==null&&o+c>n){if(s[re]){throw new l}process.emitWarning(new l)}t.cork();if(o===0){if(!i){t[v]=true}if(n===null){t.write(`${a}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${a}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${c.toString(16)}\r\n`,"latin1")}this.bytesWritten+=c;const u=t.write(e);t.uncork();r.onBodySent(e);if(!u){if(t[k].timeout&&t[k].timeoutType===Ge){if(t[k].timeout.refresh){t[k].timeout.refresh()}}}return u}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:s,header:o,request:i}=this;i.onRequestSent();e[L]=false;if(e[K]){throw e[K]}if(e.destroyed){return}if(n===0){if(s){e.write(`${o}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${o}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(r[re]){throw new l}else{process.emitWarning(new l)}}if(e[k].timeout&&e[k].timeoutType===Ge){if(e[k].timeout.refresh){e[k].timeout.refresh()}}resume(r)}destroy(e){const{socket:t,client:r}=this;t[L]=false;if(e){n(r[D]<=1,"pipeline should only contain this request");a.destroy(t,e)}}}function errorRequest(e,t,r){try{t.onError(r);n(t.aborted)}catch(r){e.emit("error",r)}}e.exports=Client},13194:(e,t,r)=>{const{kConnected:n,kSize:s}=r(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[s]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[s]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{const t=1024;const r=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:r}},53168:(e,t,r)=>{const{parseSetCookie:n}=r(8915);const{stringify:s,getHeadersList:o}=r(3834);const{webidl:i}=r(74222);const{Headers:a}=r(26349);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,a,{strict:false});const t=e.get("cookie");const r={};if(!t){return r}for(const e of t.split(";")){const[t,...n]=e.split("=");r[t.trim()]=n.join("=")}return r}function deleteCookie(e,t,r){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.DOMString(t);r=i.converters.DeleteCookieAttributes(r);setCookie(e,{name:t,value:"",expires:new Date(0),...r})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,a,{strict:false});const t=o(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,a,{strict:false});t=i.converters.Cookie(t);const r=s(t);if(r){e.append("Set-Cookie",s(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,r)=>{const{maxNameValuePairSize:n,maxAttributeValueSize:s}=r(19237);const{isCTLExcludingHtab:o}=r(3834);const{collectASequenceOfCodePointsFast:i}=r(94322);const a=r(42613);function parseSetCookie(e){if(o(e)){return null}let t="";let r="";let s="";let a="";if(e.includes(";")){const n={position:0};t=i(";",e,n);r=e.slice(n.position)}else{t=e}if(!t.includes("=")){a=t}else{const e={position:0};s=i("=",t,e);a=t.slice(e.position+1)}s=s.trim();a=a.trim();if(s.length+a.length>n){return null}return{name:s,value:a,...parseUnparsedAttributes(r)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}a(e[0]===";");e=e.slice(1);let r="";if(e.includes(";")){r=i(";",e,{position:0});e=e.slice(r.length)}else{r=e;e=""}let n="";let o="";if(r.includes("=")){const e={position:0};n=i("=",r,e);o=r.slice(e.position+1)}else{n=r}n=n.trim();o=o.trim();if(o.length>s){return parseUnparsedAttributes(e,t)}const c=n.toLowerCase();if(c==="expires"){const e=new Date(o);t.expires=e}else if(c==="max-age"){const r=o.charCodeAt(0);if((r<48||r>57)&&o[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(o)){return parseUnparsedAttributes(e,t)}const n=Number(o);t.maxAge=n}else if(c==="domain"){let e=o;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(c==="path"){let e="";if(o.length===0||o[0]!=="/"){e="/"}else{e=o}t.path=e}else if(c==="secure"){t.secure=true}else if(c==="httponly"){t.httpOnly=true}else if(c==="samesite"){let e="Default";const r=o.toLowerCase();if(r.includes("none")){e="None"}if(r.includes("strict")){e="Strict"}if(r.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${o}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(e,t,r)=>{const n=r(42613);const{kHeadersList:s}=r(36443);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const s=e.getUTCDate().toString().padStart(2,"0");const o=r[e.getUTCMonth()];const i=e.getUTCFullYear();const a=e.getUTCHours().toString().padStart(2,"0");const c=e.getUTCMinutes().toString().padStart(2,"0");const u=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${s} ${o} ${i} ${a}:${c}:${u} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const r of e.unparsed){if(!r.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=r.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let o;function getHeadersList(e){if(e[s]){return e[s]}if(!o){o=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(o,"Headers cannot be parsed")}const t=e[o];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(e,t,r)=>{const n=r(69278);const s=r(42613);const o=r(3440);const{InvalidArgumentError:i,ConnectTimeoutError:a}=r(68707);let c;let u;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){u=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:a,timeout:A,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:a,...l};const p=new u(t==null?100:t);A=A==null?1e4:A;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:a,port:u,servername:l,localAddress:g,httpSocket:h},m){let E;if(a==="https:"){if(!c){c=r(64756)}l=l||d.servername||o.getServerName(i)||null;const n=l||t;const a=p.get(n)||null;s(n);E=c.connect({highWaterMark:16384,...d,servername:l,session:a,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:h,port:u||443,host:t});E.on("session",(function(e){p.set(n,e)}))}else{s(!h,"httpSocket can only be sent on TLS update");E=n.connect({highWaterMark:64*1024,...d,localAddress:g,port:u||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;E.setKeepAlive(true,e)}const y=setupTimeout((()=>onConnectTimeout(E)),A);E.setNoDelay(true).once(a==="https:"?"secureConnect":"connect",(function(){y();if(m){const e=m;m=null;e(null,this)}})).on("error",(function(e){y();if(m){const t=m;m=null;t(e)}}));return E}}function setupTimeout(e,t){if(!t){return()=>{}}let r=null;let n=null;const s=setTimeout((()=>{r=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(s);clearImmediate(r);clearImmediate(n)}}function onConnectTimeout(e){o.destroy(e,new a)}e.exports=buildConnector},10735:e=>{const t={};const r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,r,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=r}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=r?r.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:r,data:n}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=n;this.headers=r}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,r)=>{const{InvalidArgumentError:n,NotSupportedError:s}=r(68707);const o=r(42613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:a,kHTTP1BuildRequest:c}=r(36443);const u=r(3440);const A=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const p=Symbol("handler");const g={};let h;try{const e=r(31637);g.create=e.channel("undici:request:create");g.bodySent=e.channel("undici:request:bodySent");g.headers=e.channel("undici:request:headers");g.trailers=e.channel("undici:request:trailers");g.error=e.channel("undici:request:error")}catch{g.create={hasSubscribers:false};g.bodySent={hasSubscribers:false};g.headers={hasSubscribers:false};g.trailers={hasSubscribers:false};g.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:s,body:o,headers:i,query:a,idempotent:c,blocking:l,upgrade:m,headersTimeout:E,bodyTimeout:y,reset:I,throwOnError:C,expectContinue:b},B){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&s!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof s!=="string"){throw new n("method must be a string")}else if(A.exec(s)===null){throw new n("invalid request method")}if(m&&typeof m!=="string"){throw new n("upgrade must be a string")}if(E!=null&&(!Number.isFinite(E)||E<0)){throw new n("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new n("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new n("invalid reset")}if(b!=null&&typeof b!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=E;this.bodyTimeout=y;this.throwOnError=C===true;this.method=s;this.abort=null;if(o==null){this.body=null}else if(u.isStream(o)){this.body=o;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){u.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(u.isBuffer(o)){this.body=o.byteLength?o:null}else if(ArrayBuffer.isView(o)){this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null}else if(o instanceof ArrayBuffer){this.body=o.byteLength?Buffer.from(o):null}else if(typeof o==="string"){this.body=o.length?Buffer.from(o):null}else if(u.isFormDataLike(o)||u.isIterable(o)||u.isBlobLike(o)){this.body=o}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=m||null;this.path=a?u.buildURL(t,a):t;this.origin=e;this.idempotent=c==null?s==="HEAD"||s==="GET":c;this.blocking=l==null?false:l;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=b!=null?b:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,r)=>{const n=r(42613);const{kDestroyed:s,kBodyUsed:o}=r(36443);const{IncomingMessage:i}=r(58611);const a=r(2203);const c=r(69278);const{InvalidArgumentError:u}=r(68707);const{Blob:A}=r(20181);const l=r(39023);const{stringify:d}=r(83480);const{headerNameLowerCasedRecord:p}=r(10735);const[g,h]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return A&&e instanceof A||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const r=d(t);if(r){e+="?"+r}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new u("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new u("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new u("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new u("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new u("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new u("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new u("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let r=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(r.endsWith("/")){r=r.substring(0,r.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(r+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new u("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(c.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[s])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[s]=true}}const m=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(m);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return p[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;re.toString("utf8")))}else{t[n]=e[r+1].toString("utf8")}}else{if(!Array.isArray(s)){s=[s];t[n]=s}s.push(e[r+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let r=false;let n=-1;for(let s=0;s{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const y=!!String.prototype.toWellFormed;function toUSVString(e){if(y){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:g,nodeMinor:h,nodeHasAutoSelectFamily:g>18||g===18&&h>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,r)=>{const n=r(28611);const{ClientDestroyedError:s,ClientClosedError:o,InvalidArgumentError:i}=r(68707);const{kDestroy:a,kClose:c,kDispatch:u,kInterceptors:A}=r(36443);const l=Symbol("destroyed");const d=Symbol("closed");const p=Symbol("onDestroyed");const g=Symbol("onClosed");const h=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[p]=null;this[d]=false;this[g]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[A]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[A][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[A]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new s,null)));return}if(this[d]){if(this[g]){this[g].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[g].push(e);const onClosed=()=>{const e=this[g];this[g]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[p]){this[p].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new s}this[l]=true;this[p]=this[p]||[];this[p].push(t);const onDestroyed=()=>{const e=this[p];this[p]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[h](e,t){if(!this[A]||this[A].length===0){this[h]=this[u];return this[u](e,t)}let r=this[u].bind(this);for(let e=this[A].length-1;e>=0;e--){r=this[A][e](r)}this[h]=r;return r(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[p]){throw new s}if(this[d]){throw new o}return this[h](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,r)=>{const n=r(24434);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,r)=>{const n=r(89581);const s=r(3440);const{ReadableStreamFrom:o,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:c,createDeferredPromise:u,fullyReadBody:A}=r(15523);const{FormData:l}=r(43073);const{kState:d}=r(89710);const{webidl:p}=r(74222);const{DOMException:g,structuredClone:h}=r(87326);const{Blob:m,File:E}=r(20181);const{kBodyUsed:y}=r(36443);const I=r(42613);const{isErrored:C}=r(3440);const{isUint8Array:b,isArrayBuffer:B}=r(98253);const{File:Q}=r(63041);const{parseMIMEType:T,serializeAMimeType:v}=r(94322);let w=globalThis.ReadableStream;const _=E??Q;const O=new TextEncoder;const k=new TextDecoder;function extractBody(e,t=false){if(!w){w=r(63774).ReadableStream}let n=null;if(e instanceof w){n=e}else if(i(e)){n=e.stream()}else{n=new w({async pull(e){e.enqueue(typeof A==="string"?O.encode(A):A);queueMicrotask((()=>c(e)))},start(){},type:undefined})}I(a(n));let u=null;let A=null;let l=null;let d=null;if(typeof e==="string"){A=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){A=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(B(e)){A=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){A=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(s.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const r=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;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 n=[];const s=new Uint8Array([13,10]);l=0;let o=false;for(const[t,i]of e){if(typeof i==="string"){const e=O.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);n.push(e);l+=e.byteLength}else{const e=O.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);n.push(e,i,s);if(typeof i.size==="number"){l+=e.byteLength+i.size+s.byteLength}else{o=true}}}const i=O.encode(`--${t}--`);n.push(i);l+=i.byteLength;if(o){l=null}A=e;u=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d="multipart/form-data; boundary="+t}else if(i(e)){A=e;l=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof w?e:o(e)}if(typeof A==="string"||s.isBuffer(A)){l=Buffer.byteLength(A)}if(u!=null){let t;n=new w({async start(){t=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!C(n)){e.enqueue(new Uint8Array(r))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const p={stream:n,source:A,length:l};return[p,d]}function safelyExtractBody(e,t=false){if(!w){w=r(63774).ReadableStream}if(e instanceof w){I(!s.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,r]=e.stream.tee();const n=h(r,{transfer:[r]});const[,s]=n.tee();e.stream=t;return{stream:s,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(b(e)){yield e}else{const t=e.stream;if(s.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[y]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new g("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=v(t)}return new m([e],{type:t})}),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(){p.brandCheck(this,e);throwIfAborted(this[d]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new l;let r;try{r=new n({headers:e,preservePath:true})}catch(e){throw new g(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)}));r.on("file",((e,r,n,s,o)=>{const i=[];if(s==="base64"||s.toLowerCase()==="base64"){let s="";r.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const t=s.length-s.length%4;i.push(Buffer.from(s.slice(0,t),"base64"));s=s.slice(t)}));r.on("end",(()=>{i.push(Buffer.from(s,"base64"));t.append(e,new _(i,n,{type:o}))}))}else{r.on("data",(e=>{i.push(e)}));r.on("end",(()=>{t.append(e,new _(i,n,{type:o}))}))}}));const s=new Promise(((e,t)=>{r.on("finish",e);r.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[d].body))r.write(e);r.end();await s;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[d].body)){if(!b(e)){throw new TypeError("Expected Uint8Array chunk")}t+=r.decode(e,{stream:true})}t+=r.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new l;for(const[r,n]of e){t.append(r,n)}return t}else{await Promise.resolve();throwIfAborted(this[d]);throw p.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){p.brandCheck(e,r);throwIfAborted(e[d]);if(bodyUnusable(e[d].body)){throw new TypeError("Body is unusable")}const n=u();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[d].body==null){successSteps(new Uint8Array);return n.promise}await A(e[d].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||s.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=k.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[d];const r=t.get("content-type");if(r===null){return"failure"}return T(r)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,r)=>{const{MessageChannel:n,receiveMessageOnPort:s}=r(28167);const o=["GET","HEAD","POST"];const i=new Set(o);const a=[101,204,205,304];const c=[301,302,303,307,308];const u=new Set(c);const A=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const l=new Set(A);const d=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(d);const g=["follow","manual","error"];const h=["GET","HEAD","OPTIONS","TRACE"];const m=new Set(h);const E=["navigate","same-origin","no-cors","cors"];const y=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const C=["content-encoding","content-language","content-location","content-type","content-length"];const b=["half"];const B=["CONNECT","TRACE","TRACK"];const Q=new Set(B);const T=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const v=new Set(T);const w=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let _;const O=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!_){_=new n}_.port1.unref();_.port2.unref();_.port1.postMessage(e,t?.transfer);return s(_.port2).message};e.exports={DOMException:w,structuredClone:O,subresource:T,forbiddenMethods:B,requestBodyHeader:C,referrerPolicy:d,requestRedirect:g,requestMode:E,requestCredentials:y,requestCache:I,redirectStatus:c,corsSafeListedMethods:o,nullBodyStatus:a,safeMethods:h,badPorts:A,requestDuplex:b,subresourceSet:v,badPortsSet:l,redirectStatusSet:u,corsSafeListedMethodsSet:i,safeMethodsSet:m,forbiddenMethodsSet:Q,referrerPolicySet:p}},94322:(e,t,r)=>{const n=r(42613);const{atob:s}=r(20181);const{isomorphicDecode:o}=r(15523);const i=new TextEncoder;const a=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const c=/(\u000A|\u000D|\u0009|\u0020)/;const u=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){n(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const r={position:0};let s=collectASequenceOfCodePointsFast(",",t,r);const i=s.length;s=removeASCIIWhitespace(s,true,true);if(r.position>=t.length){return"failure"}r.position++;const a=t.slice(i+1);let c=stringPercentDecode(a);if(/;(\u0020){0,}base64$/i.test(s)){const e=o(c);c=forgivingBase64(e);if(c==="failure"){return"failure"}s=s.slice(0,-6);s=s.replace(/(\u0020)+$/,"");s=s.slice(0,-1)}if(s.startsWith(";")){s="text/plain"+s}let u=parseMIMEType(s);if(u==="failure"){u=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:u,body:c}}function URLSerializer(e,t=false){if(!t){return e.href}const r=e.href;const n=e.hash.length;return n===0?r:r.substring(0,r.length-n)}function collectASequenceOfCodePoints(e,t,r){let n="";while(r.positione.length){return"failure"}t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0||!a.test(n)){return"failure"}const s=r.toLowerCase();const o=n.toLowerCase();const i={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};while(t.positionc.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);r=r.toLowerCase();if(t.positione.length){break}let n=null;if(e[t.position]==='"'){n=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{n=collectASequenceOfCodePointsFast(";",e,t);n=removeHTTPWhitespace(n,false,true);if(n.length===0){continue}}if(r.length!==0&&a.test(r)&&(n.length===0||u.test(n))&&!i.parameters.has(r)){i.parameters.set(r,n)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=s(e);const r=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const r=e[t.position];t.position++;if(r==="\\"){if(t.position>=e.length){o+="\\";break}o+=e[t.position];t.position++}else{n(r==='"');break}}if(r){return o}return e.slice(s,t.position)}function serializeAMimeType(e){n(e!=="failure");const{parameters:t,essence:r}=e;let s=r;for(let[e,r]of t.entries()){s+=";";s+=e;s+="=";if(!a.test(r)){r=r.replace(/(\\|")/g,"\\$1");r='"'+r;r+='"'}s+=r}return s}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isHTTPWhiteSpace(e[s]);s--);}return e.slice(n,s+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,r=true){let n=0;let s=e.length-1;if(t){for(;n0&&isASCIIWhitespace(e[s]);s--);}return e.slice(n,s+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,r)=>{const{Blob:n,File:s}=r(20181);const{types:o}=r(39023);const{kState:i}=r(89710);const{isBlobLike:a}=r(15523);const{webidl:c}=r(74222);const{parseMIMEType:u,serializeAMimeType:A}=r(94322);const{kEnumerableProperty:l}=r(3440);const d=new TextEncoder;class File extends n{constructor(e,t,r={}){c.argumentLengthCheck(arguments,2,{header:"File constructor"});e=c.converters["sequence"](e);t=c.converters.USVString(t);r=c.converters.FilePropertyBag(r);const n=t;let s=r.type;let o;e:{if(s){s=u(s);if(s==="failure"){s="";break e}s=A(s).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:s});this[i]={name:n,lastModified:o,type:s}}get name(){c.brandCheck(this,File);return this[i].name}get lastModified(){c.brandCheck(this,File);return this[i].lastModified}get type(){c.brandCheck(this,File);return this[i].type}}class FileLike{constructor(e,t,r={}){const n=t;const s=r.type;const o=r.lastModified??Date.now();this[i]={blobLike:e,name:n,type:s,lastModified:o}}stream(...e){c.brandCheck(this,FileLike);return this[i].blobLike.stream(...e)}arrayBuffer(...e){c.brandCheck(this,FileLike);return this[i].blobLike.arrayBuffer(...e)}slice(...e){c.brandCheck(this,FileLike);return this[i].blobLike.slice(...e)}text(...e){c.brandCheck(this,FileLike);return this[i].blobLike.text(...e)}get size(){c.brandCheck(this,FileLike);return this[i].blobLike.size}get type(){c.brandCheck(this,FileLike);return this[i].blobLike.type}get name(){c.brandCheck(this,FileLike);return this[i].name}get lastModified(){c.brandCheck(this,FileLike);return this[i].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:l,lastModified:l});c.converters.Blob=c.interfaceConverter(n);c.converters.BlobPart=function(e,t){if(c.util.Type(e)==="Object"){if(a(e)){return c.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||o.isAnyArrayBuffer(e)){return c.converters.BufferSource(e,t)}}return c.converters.USVString(e,t)};c.converters["sequence"]=c.sequenceConverter(c.converters.BlobPart);c.converters.FilePropertyBag=c.dictionaryConverter([{key:"lastModified",converter:c.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:c.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=c.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const r=[];for(const n of e){if(typeof n==="string"){let e=n;if(t.endings==="native"){e=convertLineEndingsNative(e)}r.push(d.encode(e))}else if(o.isAnyArrayBuffer(n)||o.isTypedArray(n)){if(!n.buffer){r.push(new Uint8Array(n))}else{r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}}else if(a(n)){r.push(n)}}return r}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return s&&e instanceof s||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,r)=>{const{isBlobLike:n,toUSVString:s,makeIterator:o}=r(15523);const{kState:i}=r(89710);const{File:a,FileLike:c,isFileLike:u}=r(63041);const{webidl:A}=r(74222);const{Blob:l,File:d}=r(20181);const p=d??a;class FormData{constructor(e){if(e!==undefined){throw A.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[i]=[]}append(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?A.converters.USVString(r):undefined;const s=makeEntry(e,t,r);this[i].push(s)}delete(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=A.converters.USVString(e);this[i]=this[i].filter((t=>t.name!==e))}get(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=A.converters.USVString(e);const t=this[i].findIndex((t=>t.name===e));if(t===-1){return null}return this[i][t].value}getAll(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=A.converters.USVString(e);return this[i].filter((t=>t.name===e)).map((e=>e.value))}has(e){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=A.converters.USVString(e);return this[i].findIndex((t=>t.name===e))!==-1}set(e,t,r=undefined){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!n(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=A.converters.USVString(e);t=n(t)?A.converters.Blob(t,{strict:false}):A.converters.USVString(t);r=arguments.length===3?s(r):undefined;const o=makeEntry(e,t,r);const a=this[i].findIndex((t=>t.name===e));if(a!==-1){this[i]=[...this[i].slice(0,a),o,...this[i].slice(a+1).filter((t=>t.name!==e))]}else{this[i].push(o)}}entries(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","key")}values(){A.brandCheck(this,FormData);return o((()=>this[i].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){A.brandCheck(this,FormData);A.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,r){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!u(t)){t=t instanceof l?new p([t],"blob",{type:t.type}):new c(t,"blob",{type:t.type})}if(r!==undefined){const e={type:t.type,lastModified:t.lastModified};t=d&&t instanceof d||t instanceof a?new p([t],r,e):new c(t,r,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const r=new URL(e);if(r.protocol!=="http:"&&r.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${r.protocol}`)}Object.defineProperty(globalThis,t,{value:r,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,r)=>{const{kHeadersList:n,kConstruct:s}=r(36443);const{kGuard:o}=r(89710);const{kEnumerableProperty:i}=r(3440);const{makeIterator:a,isValidHeaderName:c,isValidHeaderValue:u}=r(15523);const{webidl:A}=r(74222);const l=r(42613);const d=Symbol("headers map");const p=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let r=e.length;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(r-1)))--r;while(r>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function fill(e,t){if(Array.isArray(t)){for(let r=0;r>","record"]})}}function appendHeader(e,t,r){r=headerValueNormalize(r);if(!c(t)){throw A.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!u(r)){throw A.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}if(e[o]==="immutable"){throw new TypeError("immutable")}else if(e[o]==="request-no-cors"){}return e[n].append(t,r)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[d]=new Map(e[d]);this[p]=e[p];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[d]=new Map(e);this[p]=null}}contains(e){e=e.toLowerCase();return this[d].has(e)}clear(){this[d].clear();this[p]=null;this.cookies=null}append(e,t){this[p]=null;const r=e.toLowerCase();const n=this[d].get(r);if(n){const e=r==="cookie"?"; ":", ";this[d].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else{this[d].set(r,{name:e,value:t})}if(r==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[p]=null;const r=e.toLowerCase();if(r==="set-cookie"){this.cookies=[t]}this[d].set(r,{name:e,value:t})}delete(e){this[p]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[d].delete(e)}get(e){const t=this[d].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[d]){yield[e,t]}}get entries(){const e={};if(this[d].size){for(const{name:t,value:r}of this[d].values()){e[t]=r}}return e}}class Headers{constructor(e=undefined){if(e===s){return}this[n]=new HeadersList;this[o]="none";if(e!==undefined){e=A.converters.HeadersInit(e);fill(this,e)}}append(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}if(!this[n].contains(e)){return}this[n].delete(e)}get(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[n].get(e)}has(e){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=A.converters.ByteString(e);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[n].contains(e)}set(e,t){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=A.converters.ByteString(e);t=A.converters.ByteString(t);t=headerValueNormalize(t);if(!c(e)){throw A.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!u(t)){throw A.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[o]==="immutable"){throw new TypeError("immutable")}else if(this[o]==="request-no-cors"){}this[n].set(e,t)}getSetCookie(){A.brandCheck(this,Headers);const e=this[n].cookies;if(e){return[...e]}return[]}get[p](){if(this[n][p]){return this[n][p]}const e=[];const t=[...this[n]].sort(((e,t)=>e[0]e),"Headers","key")}return a((()=>[...this[p].values()]),"Headers","key")}values(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","value")}return a((()=>[...this[p].values()]),"Headers","value")}entries(){A.brandCheck(this,Headers);if(this[o]==="immutable"){const e=this[p];return a((()=>e),"Headers","key+value")}return a((()=>[...this[p].values()]),"Headers","key+value")}forEach(e,t=globalThis){A.brandCheck(this,Headers);A.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[r,n]of this){e.apply(t,[n,r,this])}}[Symbol.for("nodejs.util.inspect.custom")](){A.brandCheck(this,Headers);return this[n]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});A.converters.HeadersInit=function(e){if(A.util.Type(e)==="Object"){if(e[Symbol.iterator]){return A.converters["sequence>"](e)}return A.converters["record"](e)}throw A.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,r)=>{const{Response:n,makeNetworkError:s,makeAppropriateNetworkError:o,filterResponse:i,makeResponse:a}=r(48676);const{Headers:c}=r(26349);const{Request:u,makeRequest:A}=r(25194);const l=r(43106);const{bytesMatch:d,makePolicyContainer:p,clonePolicyContainer:g,requestBadPort:h,TAOCheck:m,appendRequestOriginHeader:E,responseLocationURL:y,requestCurrentURL:I,setRequestReferrerPolicyOnRedirect:C,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:B,appendFetchMetadata:Q,corsCheck:T,crossOriginResourcePolicyCheck:v,determineRequestsReferrer:w,coarsenedSharedCurrentTime:_,createDeferredPromise:O,isBlobLike:k,sameOrigin:R,isCancelled:S,isAborted:F,isErrorLike:D,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:L,urlIsLocal:U,urlIsHttpHttpsScheme:M,urlHasHttpsScheme:x}=r(15523);const{kState:G,kHeaders:j,kGuard:V,kRealm:H}=r(89710);const q=r(42613);const{safelyExtractBody:Y}=r(8923);const{redirectStatusSet:K,nullBodyStatus:J,safeMethodsSet:$,requestBodyHeader:W,subresourceSet:z,DOMException:Z}=r(87326);const{kHeadersList:X}=r(36443);const ee=r(24434);const{Readable:te,pipeline:re}=r(2203);const{addAbortListener:ne,isErrored:se,isReadable:oe,nodeMajor:ie,nodeMinor:ae}=r(3440);const{dataURLProcessor:ce,serializeAMimeType:ue}=r(94322);const{TransformStream:Ae}=r(63774);const{getGlobalDispatcher:le}=r(32581);const{webidl:de}=r(74222);const{STATUS_CODES:pe}=r(58611);const fe=["GET","HEAD"];let ge;let he=globalThis.ReadableStream;class Fetch extends ee{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Z("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){de.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=O();let s;try{s=new u(e,t)}catch(e){r.reject(e);return r.promise}const o=s[G];if(s.signal.aborted){abortFetch(r,o,null,s.signal.reason);return r.promise}const i=o.client.globalObject;if(i?.constructor?.name==="ServiceWorkerGlobalScope"){o.serviceWorkers="none"}let a=null;const c=null;let A=false;let l=null;ne(s.signal,(()=>{A=true;q(l!=null);l.abort(s.signal.reason);abortFetch(r,o,a,s.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(A){return Promise.resolve()}if(e.aborted){abortFetch(r,o,a,l.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}a=new n;a[G]=e;a[H]=c;a[j][X]=e.headersList;a[j][V]="immutable";a[j][H]=c;r.resolve(a)};l=fetching({request:o,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??le()});return r.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const r=e.urlList[0];let n=e.timingInfo;let s=e.cacheState;if(!M(r)){return}if(n===null){return}if(!e.timingAllowPassed){n=B({startTime:n.startTime});s=""}n.endTime=_();e.timingInfo=n;markResourceTiming(n,r,t,globalThis,s)}function markResourceTiming(e,t,r,n,s){if(ie>18||ie===18&&ae>=2){performance.markResourceTiming(e,t.href,r,n,s)}}function abortFetch(e,t,r,n){if(!n){n=new Z("The operation was aborted.","AbortError")}e.reject(n);if(t.body!=null&&oe(t.body?.stream)){t.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(r==null){return}const s=r[G];if(s.body!=null&&oe(s.body?.stream)){s.body.stream.cancel(n).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:i=false,dispatcher:a}){let c=null;let u=false;if(e.client!=null){c=e.client.globalObject;u=e.client.crossOriginIsolatedCapability}const A=_(u);const l=B({startTime:A});const d={controller:new Fetch(a),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:c,crossOriginIsolatedCapability:u};q(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=g(e.client.policyContainer)}else{e.policyContainer=p()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(z.has(e.destination)){}mainFetch(d).catch((e=>{d.controller.terminate(e)}));return d.controller}async function mainFetch(e,t=false){const r=e.request;let n=null;if(r.localURLsOnly&&!U(I(r))){n=s("local URLs only")}b(r);if(h(r)==="blocked"){n=s("bad port")}if(r.referrerPolicy===""){r.referrerPolicy=r.policyContainer.referrerPolicy}if(r.referrer!=="no-referrer"){r.referrer=w(r)}if(n===null){n=await(async()=>{const t=I(r);if(R(t,r.url)&&r.responseTainting==="basic"||t.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket")){r.responseTainting="basic";return await schemeFetch(e)}if(r.mode==="same-origin"){return s('request mode cannot be "same-origin"')}if(r.mode==="no-cors"){if(r.redirect!=="follow"){return s('redirect mode cannot be "follow" for "no-cors" request')}r.responseTainting="opaque";return await schemeFetch(e)}if(!M(I(r))){return s("URL scheme must be a HTTP(S) scheme")}r.responseTainting="cors";return await httpFetch(e)})()}if(t){return n}if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors"){}if(r.responseTainting==="basic"){n=i(n,"basic")}else if(r.responseTainting==="cors"){n=i(n,"cors")}else if(r.responseTainting==="opaque"){n=i(n,"opaque")}else{q(false)}}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0){o.urlList.push(...r.urlList)}if(!r.timingAllowFailed){n.timingAllowPassed=true}if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range")){n=o=s()}if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||J.includes(o.status))){o.body=null;e.controller.dump=true}if(r.integrity){const processBodyError=t=>fetchFinale(e,s(t));if(r.responseTainting==="opaque"||n.body==null){processBodyError(n.error);return}const processBody=t=>{if(!d(t,r.integrity)){processBodyError("integrity mismatch");return}n.body=Y(t)[0];fetchFinale(e,n)};await N(n.body,processBody,processBodyError)}else{fetchFinale(e,n)}}function schemeFetch(e){if(S(e)&&e.request.redirectCount===0){return Promise.resolve(o(e))}const{request:t}=e;const{protocol:n}=I(t);switch(n){case"about:":{return Promise.resolve(s("about scheme is not supported"))}case"blob:":{if(!ge){ge=r(20181).resolveObjectURL}const e=I(t);if(e.search.length!==0){return Promise.resolve(s("NetworkError when attempting to fetch resource."))}const n=ge(e.toString());if(t.method!=="GET"||!k(n)){return Promise.resolve(s("invalid method"))}const o=Y(n);const i=o[0];const c=L(`${i.length}`);const u=o[1]??"";const A=a({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:c}],["content-type",{name:"Content-Type",value:u}]]});A.body=i;return Promise.resolve(A)}case"data:":{const e=I(t);const r=ce(e);if(r==="failure"){return Promise.resolve(s("failed to fetch the data URL"))}const n=ue(r.mimeType);return Promise.resolve(a({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:Y(r.body)[0]}))}case"file:":{return Promise.resolve(s("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>s(e)))}default:{return Promise.resolve(s("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=B({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ae({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=r=>e.processResponseConsumeBody(t,r);const processBodyError=r=>e.processResponseConsumeBody(t,r);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return N(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let r=null;let n=null;const o=e.timingInfo;if(t.serviceWorkers==="all"){}if(r===null){if(t.redirect==="follow"){t.serviceWorkers="none"}n=r=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&T(t,r)==="failure"){return s("cors failure")}if(m(t,r)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||r.type==="opaque")&&v(t.origin,t.client,t.destination,n)==="blocked"){return s("blocked")}if(K.has(n.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){r=s("unexpected redirect")}else if(t.redirect==="manual"){r=n}else if(t.redirect==="follow"){r=await httpRedirectFetch(e,r)}else{q(false)}}r.timingInfo=o;return r}function httpRedirectFetch(e,t){const r=e.request;const n=t.internalResponse?t.internalResponse:t;let o;try{o=y(n,I(r).hash);if(o==null){return t}}catch(e){return Promise.resolve(s(e))}if(!M(o)){return Promise.resolve(s("URL scheme must be a HTTP(S) scheme"))}if(r.redirectCount===20){return Promise.resolve(s("redirect count exceeded"))}r.redirectCount+=1;if(r.mode==="cors"&&(o.username||o.password)&&!R(r,o)){return Promise.resolve(s('cross origin not allowed for request mode "cors"'))}if(r.responseTainting==="cors"&&(o.username||o.password)){return Promise.resolve(s('URL cannot contain credentials for request mode "cors"'))}if(n.status!==303&&r.body!=null&&r.body.source==null){return Promise.resolve(s())}if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!fe.includes(r.method)){r.method="GET";r.body=null;for(const e of W){r.headersList.delete(e)}}if(!R(I(r),o)){r.headersList.delete("authorization");r.headersList.delete("proxy-authorization",true);r.headersList.delete("cookie");r.headersList.delete("host")}if(r.body!=null){q(r.body.source!=null);r.body=Y(r.body.source)[0]}const i=e.timingInfo;i.redirectEndTime=i.postRedirectStartTime=_(e.crossOriginIsolatedCapability);if(i.redirectStartTime===0){i.redirectStartTime=i.startTime}r.urlList.push(o);C(r,n);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,r=false){const n=e.request;let i=null;let a=null;let c=null;const u=null;const l=false;if(n.window==="no-window"&&n.redirect==="error"){i=e;a=n}else{a=A(n);i={...e};i.request=a}const d=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic";const p=a.body?a.body.length:null;let g=null;if(a.body==null&&["POST","PUT"].includes(a.method)){g="0"}if(p!=null){g=L(`${p}`)}if(g!=null){a.headersList.append("content-length",g)}if(p!=null&&a.keepalive){}if(a.referrer instanceof URL){a.headersList.append("referer",L(a.referrer.href))}E(a);Q(a);if(!a.headersList.contains("user-agent")){a.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(a.cache==="default"&&(a.headersList.contains("if-modified-since")||a.headersList.contains("if-none-match")||a.headersList.contains("if-unmodified-since")||a.headersList.contains("if-match")||a.headersList.contains("if-range"))){a.cache="no-store"}if(a.cache==="no-cache"&&!a.preventNoCacheCacheControlHeaderModification&&!a.headersList.contains("cache-control")){a.headersList.append("cache-control","max-age=0")}if(a.cache==="no-store"||a.cache==="reload"){if(!a.headersList.contains("pragma")){a.headersList.append("pragma","no-cache")}if(!a.headersList.contains("cache-control")){a.headersList.append("cache-control","no-cache")}}if(a.headersList.contains("range")){a.headersList.append("accept-encoding","identity")}if(!a.headersList.contains("accept-encoding")){if(x(I(a))){a.headersList.append("accept-encoding","br, gzip, deflate")}else{a.headersList.append("accept-encoding","gzip, deflate")}}a.headersList.delete("host");if(d){}if(u==null){a.cache="no-store"}if(a.mode!=="no-store"&&a.mode!=="reload"){}if(c==null){if(a.mode==="only-if-cached"){return s("only if cached")}const e=await httpNetworkFetch(i,d,r);if(!$.has(a.method)&&e.status>=200&&e.status<=399){}if(l&&e.status===304){}if(c==null){c=e}}c.urlList=[...a.urlList];if(a.headersList.contains("range")){c.rangeRequested=true}c.requestIncludesCredentials=d;if(c.status===407){if(n.window==="no-window"){return s()}if(S(e)){return o(e)}return s("proxy authentication required")}if(c.status===421&&!r&&(n.body==null||n.body.source!=null)){if(S(e)){return o(e)}e.controller.connection.destroy();c=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return c}async function httpNetworkFetch(e,t=false,n=false){q(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Z("The operation was aborted.","AbortError"))}}};const i=e.request;let u=null;const A=e.timingInfo;const d=null;if(d==null){i.cache="no-store"}const p=n?"yes":"no";if(i.mode==="websocket"){}else{}let g=null;if(i.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(i.body!=null){const processBodyChunk=async function*(t){if(S(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(S(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(S(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};g=async function*(){try{for await(const e of i.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:r,statusText:n,headersList:s,socket:o}=await dispatch({body:g});if(o){u=a({status:r,statusText:n,headersList:s,socket:o})}else{const o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next();u=a({status:r,statusText:n,headersList:s})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return o(e,t)}return s(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!he){he=r(63774).ReadableStream}const h=new he({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});u.body={stream:h};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let r;try{const{done:r,value:n}=await e.controller.next();if(F(e)){break}t=r?undefined:n}catch(n){if(e.controller.ended&&!A.encodedBodySize){t=undefined}else{t=n;r=true}}if(t===undefined){P(e.controller.controller);finalizeResponse(e,u);return}A.decodedBodySize+=t?.byteLength??0;if(r){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(se(h)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(F(e)){u.aborted=true;if(oe(h)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(oe(h)){e.controller.controller.error(new TypeError("terminated",{cause:D(t)?t:undefined}))}}e.controller.connection.destroy()}return u;async function dispatch({body:t}){const r=I(i);const n=e.controller.dispatcher;return new Promise(((s,o)=>n.dispatch({path:r.pathname+r.search,origin:r.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):t,headers:i.headersList.entries,maxRedirections:0,upgrade:i.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;if(r.destroyed){t(new Z("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=r.abort=t}},onHeaders(e,t,r,n){if(e<200){return}let o=[];let a="";const u=new c;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(r.toLowerCase()==="location"){a=n}u[X].append(r,n)}}else{const e=Object.keys(t);for(const r of e){const e=t[r];if(r.toLowerCase()==="content-encoding"){o=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(r.toLowerCase()==="location"){a=e}u[X].append(r,e)}}this.body=new te({read:r});const A=[];const d=i.redirect==="follow"&&a&&K.has(e);if(i.method!=="HEAD"&&i.method!=="CONNECT"&&!J.includes(e)&&!d){for(const e of o){if(e==="x-gzip"||e==="gzip"){A.push(l.createGunzip({flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){A.push(l.createInflate())}else if(e==="br"){A.push(l.createBrotliDecompress())}else{A.length=0;break}}}s({status:e,statusText:n,headersList:u[X],body:A.length?re(this.body,...A,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const r=t;A.encodedBodySize+=r.byteLength;return this.body.push(r)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);o(t)},onUpgrade(e,t,r){if(e!==101){return}const n=new c;for(let e=0;e{const{extractBody:n,mixinBody:s,cloneBody:o}=r(8923);const{Headers:i,fill:a,HeadersList:c}=r(26349);const{FinalizationRegistry:u}=r(13194)();const A=r(3440);const{isValidHTTPToken:l,sameOrigin:d,normalizeMethod:p,makePolicyContainer:g,normalizeMethodRecord:h}=r(15523);const{forbiddenMethodsSet:m,corsSafeListedMethodsSet:E,referrerPolicy:y,requestRedirect:I,requestMode:C,requestCredentials:b,requestCache:B,requestDuplex:Q}=r(87326);const{kEnumerableProperty:T}=A;const{kHeaders:v,kSignal:w,kState:_,kGuard:O,kRealm:k}=r(89710);const{webidl:R}=r(74222);const{getGlobalOrigin:S}=r(75628);const{URLSerializer:F}=r(94322);const{kHeadersList:D,kConstruct:N}=r(36443);const P=r(42613);const{getMaxListeners:L,setMaxListeners:U,getEventListeners:M,defaultMaxListeners:x}=r(24434);let G=globalThis.TransformStream;const j=Symbol("abortController");const V=new u((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===N){return}R.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=R.converters.RequestInfo(e);t=R.converters.RequestInit(t);this[k]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:g()}};let s=null;let o=null;const u=this[k].settingsObject.baseUrl;let y=null;if(typeof e==="string"){let t;try{t=new URL(e,u)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}s=makeRequest({urlList:[t]});o="cors"}else{P(e instanceof Request);s=e[_];y=e[w]}const I=this[k].settingsObject.origin;let C="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&d(s.window,I)){C=s.window}if(t.window!=null){throw new TypeError(`'window' option '${C}' must be null`)}if("window"in t){C="no-window"}s=makeRequest({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:this[k].settingsObject,window:C,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});const b=Object.keys(t).length!==0;if(b){if(s.mode==="navigate"){s.mode="same-origin"}s.reloadNavigation=false;s.historyNavigation=false;s.origin="client";s.referrer="client";s.referrerPolicy="";s.url=s.urlList[s.urlList.length-1];s.urlList=[s.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){s.referrer="no-referrer"}else{let t;try{t=new URL(e,u)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||I&&!d(t,this[k].settingsObject.baseUrl)){s.referrer="client"}else{s.referrer=t}}}if(t.referrerPolicy!==undefined){s.referrerPolicy=t.referrerPolicy}let B;if(t.mode!==undefined){B=t.mode}else{B=o}if(B==="navigate"){throw R.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(B!=null){s.mode=B}if(t.credentials!==undefined){s.credentials=t.credentials}if(t.cache!==undefined){s.cache=t.cache}if(s.cache==="only-if-cached"&&s.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){s.redirect=t.redirect}if(t.integrity!=null){s.integrity=String(t.integrity)}if(t.keepalive!==undefined){s.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!l(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(m.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=h[e]??p(e);s.method=e}if(t.signal!==undefined){y=t.signal}this[_]=s;const Q=new AbortController;this[w]=Q.signal;this[w][k]=this[k];if(y!=null){if(!y||typeof y.aborted!=="boolean"||typeof y.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(y.aborted){Q.abort(y.reason)}else{this[j]=Q;const e=new WeakRef(Q);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof L==="function"&&L(y)===x){U(100,y)}else if(M(y,"abort").length>=x){U(100,y)}}catch{}A.addAbortListener(y,abort);V.register(Q,{signal:y,abort:abort})}}this[v]=new i(N);this[v][D]=s.headersList;this[v][O]="request";this[v][k]=this[k];if(B==="no-cors"){if(!E.has(s.method)){throw new TypeError(`'${s.method} is unsupported in no-cors mode.`)}this[v][O]="request-no-cors"}if(b){const e=this[v][D];const r=t.headers!==undefined?t.headers:new c(e);e.clear();if(r instanceof c){for(const[t,n]of r){e.append(t,n)}e.cookies=r.cookies}else{a(this[v],r)}}const T=e instanceof Request?e[_].body:null;if((t.body!=null||T!=null)&&(s.method==="GET"||s.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let F=null;if(t.body!=null){const[e,r]=n(t.body,s.keepalive);F=e;if(r&&!this[v][D].contains("content-type")){this[v].append("content-type",r)}}const H=F??T;if(H!=null&&H.source==null){if(F!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(s.mode!=="same-origin"&&s.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}s.useCORSPreflightFlag=true}let q=H;if(F==null&&T!=null){if(A.isDisturbed(T.stream)||T.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!G){G=r(63774).TransformStream}const e=new G;T.stream.pipeThrough(e);q={source:T.source,length:T.length,stream:e.readable}}this[_].body=q}get method(){R.brandCheck(this,Request);return this[_].method}get url(){R.brandCheck(this,Request);return F(this[_].url)}get headers(){R.brandCheck(this,Request);return this[v]}get destination(){R.brandCheck(this,Request);return this[_].destination}get referrer(){R.brandCheck(this,Request);if(this[_].referrer==="no-referrer"){return""}if(this[_].referrer==="client"){return"about:client"}return this[_].referrer.toString()}get referrerPolicy(){R.brandCheck(this,Request);return this[_].referrerPolicy}get mode(){R.brandCheck(this,Request);return this[_].mode}get credentials(){return this[_].credentials}get cache(){R.brandCheck(this,Request);return this[_].cache}get redirect(){R.brandCheck(this,Request);return this[_].redirect}get integrity(){R.brandCheck(this,Request);return this[_].integrity}get keepalive(){R.brandCheck(this,Request);return this[_].keepalive}get isReloadNavigation(){R.brandCheck(this,Request);return this[_].reloadNavigation}get isHistoryNavigation(){R.brandCheck(this,Request);return this[_].historyNavigation}get signal(){R.brandCheck(this,Request);return this[w]}get body(){R.brandCheck(this,Request);return this[_].body?this[_].body.stream:null}get bodyUsed(){R.brandCheck(this,Request);return!!this[_].body&&A.isDisturbed(this[_].body.stream)}get duplex(){R.brandCheck(this,Request);return"half"}clone(){R.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[_]);const t=new Request(N);t[_]=e;t[k]=this[k];t[v]=new i(N);t[v][D]=e.headersList;t[v][O]=this[v][O];t[v][k]=this[v][k];const r=new AbortController;if(this.signal.aborted){r.abort(this.signal.reason)}else{A.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)}))}t[w]=r.signal;return t}}s(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new c(e.headersList):new c};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=o(e.body)}return t}Object.defineProperties(Request.prototype,{method:T,url:T,headers:T,redirect:T,clone:T,signal:T,duplex:T,destination:T,body:T,bodyUsed:T,isHistoryNavigation:T,isReloadNavigation:T,keepalive:T,integrity:T,cache:T,credentials:T,attribute:T,referrerPolicy:T,referrer:T,mode:T,[Symbol.toStringTag]:{value:"Request",configurable:true}});R.converters.Request=R.interfaceConverter(Request);R.converters.RequestInfo=function(e){if(typeof e==="string"){return R.converters.USVString(e)}if(e instanceof Request){return R.converters.Request(e)}return R.converters.USVString(e)};R.converters.AbortSignal=R.interfaceConverter(AbortSignal);R.converters.RequestInit=R.dictionaryConverter([{key:"method",converter:R.converters.ByteString},{key:"headers",converter:R.converters.HeadersInit},{key:"body",converter:R.nullableConverter(R.converters.BodyInit)},{key:"referrer",converter:R.converters.USVString},{key:"referrerPolicy",converter:R.converters.DOMString,allowedValues:y},{key:"mode",converter:R.converters.DOMString,allowedValues:C},{key:"credentials",converter:R.converters.DOMString,allowedValues:b},{key:"cache",converter:R.converters.DOMString,allowedValues:B},{key:"redirect",converter:R.converters.DOMString,allowedValues:I},{key:"integrity",converter:R.converters.DOMString},{key:"keepalive",converter:R.converters.boolean},{key:"signal",converter:R.nullableConverter((e=>R.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:R.converters.any},{key:"duplex",converter:R.converters.DOMString,allowedValues:Q}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,r)=>{const{Headers:n,HeadersList:s,fill:o}=r(26349);const{extractBody:i,cloneBody:a,mixinBody:c}=r(8923);const u=r(3440);const{kEnumerableProperty:A}=u;const{isValidReasonPhrase:l,isCancelled:d,isAborted:p,isBlobLike:g,serializeJavascriptValueToJSONString:h,isErrorLike:m,isomorphicEncode:E}=r(15523);const{redirectStatusSet:y,nullBodyStatus:I,DOMException:C}=r(87326);const{kState:b,kHeaders:B,kGuard:Q,kRealm:T}=r(89710);const{webidl:v}=r(74222);const{FormData:w}=r(43073);const{getGlobalOrigin:_}=r(75628);const{URLSerializer:O}=r(94322);const{kHeadersList:k,kConstruct:R}=r(36443);const S=r(42613);const{types:F}=r(39023);const D=globalThis.ReadableStream||r(63774).ReadableStream;const N=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[b]=makeNetworkError();t[T]=e;t[B][k]=t[b].headersList;t[B][Q]="immutable";t[B][T]=e;return t}static json(e,t={}){v.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=v.converters.ResponseInit(t)}const r=N.encode(h(e));const n=i(r);const s={settingsObject:{}};const o=new Response;o[T]=s;o[B][Q]="response";o[B][T]=s;initializeResponse(o,t,{body:n[0],type:"application/json"});return o}static redirect(e,t=302){const r={settingsObject:{}};v.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=v.converters.USVString(e);t=v.converters["unsigned short"](t);let n;try{n=new URL(e,_())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!y.has(t)){throw new RangeError("Invalid status code "+t)}const s=new Response;s[T]=r;s[B][Q]="immutable";s[B][T]=r;s[b].status=t;const o=E(O(n));s[b].headersList.append("location",o);return s}constructor(e=null,t={}){if(e!==null){e=v.converters.BodyInit(e)}t=v.converters.ResponseInit(t);this[T]={settingsObject:{}};this[b]=makeResponse({});this[B]=new n(R);this[B][Q]="response";this[B][k]=this[b].headersList;this[B][T]=this[T];let r=null;if(e!=null){const[t,n]=i(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){v.brandCheck(this,Response);return this[b].type}get url(){v.brandCheck(this,Response);const e=this[b].urlList;const t=e[e.length-1]??null;if(t===null){return""}return O(t,true)}get redirected(){v.brandCheck(this,Response);return this[b].urlList.length>1}get status(){v.brandCheck(this,Response);return this[b].status}get ok(){v.brandCheck(this,Response);return this[b].status>=200&&this[b].status<=299}get statusText(){v.brandCheck(this,Response);return this[b].statusText}get headers(){v.brandCheck(this,Response);return this[B]}get body(){v.brandCheck(this,Response);return this[b].body?this[b].body.stream:null}get bodyUsed(){v.brandCheck(this,Response);return!!this[b].body&&u.isDisturbed(this[b].body.stream)}clone(){v.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw v.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[b]);const t=new Response;t[b]=e;t[T]=this[T];t[B][k]=e.headersList;t[B][Q]=this[B][Q];t[B][T]=this[B][T];return t}}c(Response);Object.defineProperties(Response.prototype,{type:A,url:A,status:A,ok:A,redirected:A,statusText:A,headers:A,clone:A,body:A,bodyUsed:A,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:A,redirect:A,error:A});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=a(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new s(e.headersList):new s,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=m(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,r){return r in t?t[r]:e[r]},set(e,r,n){S(!(r in t));e[r]=n;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{S(false)}}function makeAppropriateNetworkError(e,t=null){S(d(e));return p(e)?makeNetworkError(Object.assign(new C("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new C("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!l(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[b].status=t.status}if("statusText"in t&&t.statusText!=null){e[b].statusText=t.statusText}if("headers"in t&&t.headers!=null){o(e[B],t.headers)}if(r){if(I.includes(e.status)){throw v.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[b].body=r.body;if(r.type!=null&&!e[b].headersList.contains("Content-Type")){e[b].headersList.append("content-type",r.type)}}}v.converters.ReadableStream=v.interfaceConverter(D);v.converters.FormData=v.interfaceConverter(w);v.converters.URLSearchParams=v.interfaceConverter(URLSearchParams);v.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return v.converters.USVString(e)}if(g(e)){return v.converters.Blob(e,{strict:false})}if(F.isArrayBuffer(e)||F.isTypedArray(e)||F.isDataView(e)){return v.converters.BufferSource(e)}if(u.isFormDataLike(e)){return v.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return v.converters.URLSearchParams(e)}return v.converters.DOMString(e)};v.converters.BodyInit=function(e){if(e instanceof D){return v.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return v.converters.XMLHttpRequestBodyInit(e)};v.converters.ResponseInit=v.dictionaryConverter([{key:"status",converter:v.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:v.converters.ByteString,defaultValue:""},{key:"headers",converter:v.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,r)=>{const{redirectStatusSet:n,referrerPolicySet:s,badPortsSet:o}=r(87326);const{getGlobalOrigin:i}=r(75628);const{performance:a}=r(82987);const{isBlobLike:c,toUSVString:u,ReadableStreamFrom:A}=r(3440);const l=r(42613);const{isUint8Array:d}=r(98253);let p=[];let g;try{g=r(76982);const e=["sha256","sha384","sha512"];p=g.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const r=t.length;return r===0?null:t[r-1].toString()}function responseLocationURL(e,t){if(!n.has(e.status)){return null}let r=e.headersList.get("location");if(r!==null&&isValidHeaderValue(r)){r=new URL(r,responseURL(e))}if(r&&!r.hash){r.hash=t}return r}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&o.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&r<=126||r>=128&&r<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=n.length;e!==0;e--){const t=n[e-1].trim();if(s.has(t)){o=t;break}}}if(o!==""){e.referrerPolicy=o}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return a.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;l(t);let r=null;if(e.referrer==="client"){const e=i();if(!e||e.origin==="null"){return"no-referrer"}r=new URL(e)}else if(e.referrer instanceof URL){r=e.referrer}let n=stripURLForReferrer(r);const s=stripURLForReferrer(r,true);if(n.toString().length>4096){n=s}const o=sameOrigin(e,n);const a=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return s!=null?s:stripURLForReferrer(r,true);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(n,t)){return n}if(isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return s}case"strict-origin":case"no-referrer-when-downgrade":default:return a?"no-referrer":s}}function stripURLForReferrer(e,t){l(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(g===undefined){return true}const r=parseMetadata(t);if(r==="no metadata"){return true}if(r.length===0){return true}const n=getStrongestMetadata(r);const s=filterMetadataListByAlgorithm(r,n);for(const t of s){const r=t.algo;const n=t.hash;let s=g.createHash(r).update(e).digest("base64");if(s[s.length-1]==="="){if(s[s.length-2]==="="){s=s.slice(0,-2)}else{s=s.slice(0,-1)}}if(compareBase64Mixed(s,n)){return true}}return false}const h=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let r=true;for(const n of e.split(" ")){r=false;const e=h.exec(n);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const s=e.groups.algo.toLowerCase();if(p.includes(s)){t.push(e.groups)}}if(r===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let r=1;r{e=r;t=n}));return{promise:r,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const m={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(m,null);function normalizeMethod(e){return m[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}l(typeof t==="string");return t}const E=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,r){const n={index:0,kind:r,target:e};const s={next(){if(Object.getPrototypeOf(this)!==s){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:r,target:o}=n;const i=o();const a=i.length;if(e>=a){return{value:undefined,done:true}}const c=i[e];n.index=e+1;return iteratorResult(c,r)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(s,E);return Object.setPrototypeOf({},s)}function iteratorResult(e,t){let r;switch(t){case"key":{r=e[0];break}case"value":{r=e[1];break}case"key+value":{r=e;break}}return{value:r,done:false}}async function fullyReadBody(e,t,r){const n=t;const s=r;let o;try{o=e.stream.getReader()}catch(e){s(e);return}try{const e=await readAllBytes(o);n(e)}catch(e){s(e)}}let y=globalThis.ReadableStream;function isReadableStreamLike(e){if(!y){y=r(63774).ReadableStream}return e instanceof y||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const I=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:A,toUSVString:u,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:c,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:C,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:m,parseMetadata:parseMetadata}},74222:(e,t,r)=>{const{types:n}=r(39023);const{hasOwn:s,toUSVString:o}=r(15523);const i={};i.converters={};i.util={};i.errors={};i.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};i.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const r=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:r})};i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};i.brandCheck=function(e,t,r=undefined){if(r?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};i.argumentLengthCheck=function({length:e},t,r){if(es){throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`})}return a}if(!Number.isNaN(a)&&n.clamp===true){a=Math.min(Math.max(a,o),s);if(Math.floor(a)%2===0){a=Math.floor(a)}else{a=Math.ceil(a)}return a}if(Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY){return 0}a=i.util.IntegerPart(a);a=a%Math.pow(2,t);if(r==="signed"&&a>=Math.pow(2,t)-1){return a-Math.pow(2,t)}return a};i.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};i.sequenceConverter=function(e){return t=>{if(i.util.Type(t)!=="Object"){throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(t)} is not an Object.`})}const r=t?.[Symbol.iterator]?.();const n=[];if(r===undefined||typeof r.next!=="function"){throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:s}=r.next();if(t){break}n.push(e(s))}return n}};i.recordConverter=function(e,t){return r=>{if(i.util.Type(r)!=="Object"){throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`})}const s={};if(!n.isProxy(r)){const n=Object.keys(r);for(const o of n){const n=e(o);const i=t(r[o]);s[n]=i}return s}const o=Reflect.ownKeys(r);for(const n of o){const o=Reflect.getOwnPropertyDescriptor(r,n);if(o?.enumerable){const o=e(n);const i=t(r[n]);s[o]=i}}return s}};i.interfaceConverter=function(e){return(t,r={})=>{if(r.strict!==false&&!(t instanceof e)){throw i.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};i.dictionaryConverter=function(e){return t=>{const r=i.util.Type(t);const n={};if(r==="Null"||r==="Undefined"){return n}else if(r!=="Object"){throw i.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const r of e){const{key:e,defaultValue:o,required:a,converter:c}=r;if(a===true){if(!s(t,e)){throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let u=t[e];const A=s(r,"defaultValue");if(A&&u!==null){u=u??o}if(a||A||u!==undefined){u=c(u);if(r.allowedValues&&!r.allowedValues.includes(u)){throw i.errors.exception({header:"Dictionary",message:`${u} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`})}n[e]=u}}return n}};i.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};i.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};i.converters.ByteString=function(e){const t=i.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};i.converters.USVString=o;i.converters.boolean=function(e){const t=Boolean(e);return t};i.converters.any=function(e){return e};i.converters["long long"]=function(e){const t=i.util.ConvertToInt(e,64,"signed");return t};i.converters["unsigned long long"]=function(e){const t=i.util.ConvertToInt(e,64,"unsigned");return t};i.converters["unsigned long"]=function(e){const t=i.util.ConvertToInt(e,32,"unsigned");return t};i.converters["unsigned short"]=function(e,t){const r=i.util.ConvertToInt(e,16,"unsigned",t);return r};i.converters.ArrayBuffer=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isAnyArrayBuffer(e)){throw i.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&n.isSharedArrayBuffer(e)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.TypedArray=function(e,t,r={}){if(i.util.Type(e)!=="Object"||!n.isTypedArray(e)||e.constructor.name!==t.name){throw i.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(r.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.DataView=function(e,t={}){if(i.util.Type(e)!=="Object"||!n.isDataView(e)){throw i.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&n.isSharedArrayBuffer(e.buffer)){throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};i.converters.BufferSource=function(e,t={}){if(n.isAnyArrayBuffer(e)){return i.converters.ArrayBuffer(e,t)}if(n.isTypedArray(e)){return i.converters.TypedArray(e,e.constructor)}if(n.isDataView(e)){return i.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString);i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]);i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString);e.exports={webidl:i}},40396:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,r)=>{const{staticPropertyDescriptors:n,readOperation:s,fireAProgressEvent:o}=r(10165);const{kState:i,kError:a,kResult:c,kEvents:u,kAborted:A}=r(86812);const{webidl:l}=r(74222);const{kEnumerableProperty:d}=r(3440);class FileReader extends EventTarget{constructor(){super();this[i]="empty";this[c]=null;this[a]=null;this[u]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=l.converters.Blob(e,{strict:false});s(this,e,"ArrayBuffer")}readAsBinaryString(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=l.converters.Blob(e,{strict:false});s(this,e,"BinaryString")}readAsText(e,t=undefined){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=l.converters.Blob(e,{strict:false});if(t!==undefined){t=l.converters.DOMString(t)}s(this,e,"Text",t)}readAsDataURL(e){l.brandCheck(this,FileReader);l.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=l.converters.Blob(e,{strict:false});s(this,e,"DataURL")}abort(){if(this[i]==="empty"||this[i]==="done"){this[c]=null;return}if(this[i]==="loading"){this[i]="done";this[c]=null}this[A]=true;o("abort",this);if(this[i]!=="loading"){o("loadend",this)}}get readyState(){l.brandCheck(this,FileReader);switch(this[i]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){l.brandCheck(this,FileReader);return this[c]}get error(){l.brandCheck(this,FileReader);return this[a]}get onloadend(){l.brandCheck(this,FileReader);return this[u].loadend}set onloadend(e){l.brandCheck(this,FileReader);if(this[u].loadend){this.removeEventListener("loadend",this[u].loadend)}if(typeof e==="function"){this[u].loadend=e;this.addEventListener("loadend",e)}else{this[u].loadend=null}}get onerror(){l.brandCheck(this,FileReader);return this[u].error}set onerror(e){l.brandCheck(this,FileReader);if(this[u].error){this.removeEventListener("error",this[u].error)}if(typeof e==="function"){this[u].error=e;this.addEventListener("error",e)}else{this[u].error=null}}get onloadstart(){l.brandCheck(this,FileReader);return this[u].loadstart}set onloadstart(e){l.brandCheck(this,FileReader);if(this[u].loadstart){this.removeEventListener("loadstart",this[u].loadstart)}if(typeof e==="function"){this[u].loadstart=e;this.addEventListener("loadstart",e)}else{this[u].loadstart=null}}get onprogress(){l.brandCheck(this,FileReader);return this[u].progress}set onprogress(e){l.brandCheck(this,FileReader);if(this[u].progress){this.removeEventListener("progress",this[u].progress)}if(typeof e==="function"){this[u].progress=e;this.addEventListener("progress",e)}else{this[u].progress=null}}get onload(){l.brandCheck(this,FileReader);return this[u].load}set onload(e){l.brandCheck(this,FileReader);if(this[u].load){this.removeEventListener("load",this[u].load)}if(typeof e==="function"){this[u].load=e;this.addEventListener("load",e)}else{this[u].load=null}}get onabort(){l.brandCheck(this,FileReader);return this[u].abort}set onabort(e){l.brandCheck(this,FileReader);if(this[u].abort){this.removeEventListener("abort",this[u].abort)}if(typeof e==="function"){this[u].abort=e;this.addEventListener("abort",e)}else{this[u].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:n,LOADING:n,DONE:n});e.exports={FileReader:FileReader}},15976:(e,t,r)=>{const{webidl:n}=r(74222);const s=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=n.converters.DOMString(e);t=n.converters.ProgressEventInit(t??{});super(e,t);this[s]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){n.brandCheck(this,ProgressEvent);return this[s].lengthComputable}get loaded(){n.brandCheck(this,ProgressEvent);return this[s].loaded}get total(){n.brandCheck(this,ProgressEvent);return this[s].total}}n.converters.ProgressEventInit=n.dictionaryConverter([{key:"lengthComputable",converter:n.converters.boolean,defaultValue:false},{key:"loaded",converter:n.converters["unsigned long long"],defaultValue:0},{key:"total",converter:n.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,r)=>{const{kState:n,kError:s,kResult:o,kAborted:i,kLastProgressEventFired:a}=r(86812);const{ProgressEvent:c}=r(15976);const{getEncoding:u}=r(40396);const{DOMException:A}=r(87326);const{serializeAMimeType:l,parseMIMEType:d}=r(94322);const{types:p}=r(39023);const{StringDecoder:g}=r(13193);const{btoa:h}=r(20181);const m={enumerable:true,writable:false,configurable:false};function readOperation(e,t,r,c){if(e[n]==="loading"){throw new A("Invalid state","InvalidStateError")}e[n]="loading";e[o]=null;e[s]=null;const u=t.stream();const l=u.getReader();const d=[];let g=l.read();let h=true;(async()=>{while(!e[i]){try{const{done:u,value:A}=await g;if(h&&!e[i]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}h=false;if(!u&&p.isUint8Array(A)){d.push(A);if((e[a]===undefined||Date.now()-e[a]>=50)&&!e[i]){e[a]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}g=l.read()}else if(u){queueMicrotask((()=>{e[n]="done";try{const n=packageData(d,r,t.type,c);if(e[i]){return}e[o]=n;fireAProgressEvent("load",e)}catch(t){e[s]=t;fireAProgressEvent("error",e)}if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[i]){return}queueMicrotask((()=>{e[n]="done";e[s]=t;fireAProgressEvent("error",e);if(e[n]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const r=new c(e,{bubbles:false,cancelable:false});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=d(r||"application/octet-stream");if(n!=="failure"){t+=l(n)}t+=";base64,";const s=new g("latin1");for(const r of e){t+=h(s.write(r))}t+=h(s.end());return t}case"Text":{let t="failure";if(n){t=u(n)}if(t==="failure"&&r){const e=d(r);if(e!=="failure"){t=u(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const r=new g("latin1");for(const n of e){t+=r.write(n)}t+=r.end();return t}}}function decode(e,t){const r=combineByteSequences(e);const n=BOMSniffing(r);let s=0;if(n!==null){t=n;s=n==="UTF-8"?3:2}const o=r.slice(s);return new TextDecoder(t).decode(o)}function BOMSniffing(e){const[t,r,n]=e;if(t===239&&r===187&&n===191){return"UTF-8"}else if(t===254&&r===255){return"UTF-16BE"}else if(t===255&&r===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>{e.set(t,r);r+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:m,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,r)=>{const n=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:s}=r(68707);const o=r(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new o)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new s("Argument agent must implement Agent")}Object.defineProperty(globalThis,n,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[n]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,r)=>{const n=r(3440);const{kBodyUsed:s}=r(36443);const o=r(42613);const{InvalidArgumentError:i}=r(68707);const a=r(24434);const c=[300,301,302,303,307,308];const u=Symbol("body");class BodyAsyncIterable{constructor(e){this[u]=e;this[s]=false}async*[Symbol.asyncIterator](){o(!this[s],"disturbed");this[s]=true;yield*this[u]}}class RedirectHandler{constructor(e,t,r,c){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxRedirections must be a positive number")}n.validateHandler(c,r.method,r.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...r,maxRedirections:0};this.maxRedirections=t;this.handler=c;this.history=[];if(n.isStream(this.opts.body)){if(n.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){o(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[s]=false;a.prototype.on.call(this.opts.body,"data",(function(){this[s]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,s){this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,r,s)}const{origin:o,pathname:i,search:a}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const c=a?`${i}${a}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==o);this.opts.path=c;this.opts.origin=o;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(c.indexOf(e)===-1){return null}for(let e=0;e{const n=r(42613);const{kRetryHandlerDefaultRetry:s}=r(36443);const{RequestRetryError:o}=r(68707);const{isDisturbed:i,parseHeaders:a,parseRangeHeader:c}=r(3440);function calculateRetryAfterHeader(e){const t=Date.now();const r=new Date(e).getTime()-t;return r}class RetryHandler{constructor(e,t){const{retryOptions:r,...n}=e;const{retry:o,maxRetries:i,maxTimeout:a,minTimeout:c,timeoutFactor:u,methods:A,errorCodes:l,retryAfter:d,statusCodes:p}=r??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=n;this.abort=null;this.aborted=false;this.retryOpts={retry:o??RetryHandler[s],retryAfter:d??true,maxTimeout:a??30*1e3,timeout:c??500,timeoutFactor:u??2,maxRetries:i??5,methods:A??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:p??[500,502,503,504,429],errorCodes:l??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,r){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,r)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[s](e,{state:t,opts:r},n){const{statusCode:s,code:o,headers:i}=e;const{method:a,retryOptions:c}=r;const{maxRetries:u,timeout:A,maxTimeout:l,timeoutFactor:d,statusCodes:p,errorCodes:g,methods:h}=c;let{counter:m,currentTimeout:E}=t;E=E!=null&&E>0?E:A;if(o&&o!=="UND_ERR_REQ_RETRY"&&o!=="UND_ERR_SOCKET"&&!g.includes(o)){n(e);return}if(Array.isArray(h)&&!h.includes(a)){n(e);return}if(s!=null&&Array.isArray(p)&&!p.includes(s)){n(e);return}if(m>u){n(e);return}let y=i!=null&&i["retry-after"];if(y){y=Number(y);y=isNaN(y)?calculateRetryAfterHeader(y):y*1e3}const I=y>0?Math.min(y,l):Math.min(E*d**m,l);t.currentTimeout=I;setTimeout((()=>n(null)),I)}onHeaders(e,t,r,s){const i=a(t);this.retryCount+=1;if(e>=300){this.abort(new o("Request failed",e,{headers:i,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=c(i["content-range"]);if(!t){this.abort(new o("Content-Range mismatch",e,{headers:i,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==i.etag){this.abort(new o("ETag mismatch",e,{headers:i,count:this.retryCount}));return false}const{start:s,size:a,end:u=a}=t;n(this.start===s,"content-range mismatch");n(this.end==null||this.end===u,"content-range mismatch");this.resume=r;return true}if(this.end==null){if(e===206){const o=c(i["content-range"]);if(o==null){return this.handler.onHeaders(e,t,r,s)}const{start:a,size:u,end:A=u}=o;n(a!=null&&Number.isFinite(a)&&this.start!==a,"content-range mismatch");n(Number.isFinite(a));n(A!=null&&Number.isFinite(A)&&this.end!==A,"invalid content-length");this.start=a;this.end=A}if(this.end==null){const e=i["content-length"];this.end=e!=null?Number(e):null}n(Number.isFinite(this.start));n(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=r;this.etag=i.etag!=null?i.etag:null;return this.handler.onHeaders(e,t,r,s)}const u=new o("Request failed",e,{headers:i,count:this.retryCount});this.abort(u);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||i(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||i(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,r)=>{const n=r(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(r,s){const{maxRedirections:o=e}=r;if(!o){return t(r,s)}const i=new n(t,o,r,s);r={...r,maxRedirections:0};return t(r,i)}}e.exports=createRedirectInterceptor},52824:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const n=r(50172);var s;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(s=t.ERROR||(t.ERROR={}));var o;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(o=t.TYPE||(t.TYPE={}));var i;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(i=t.FLAGS||(t.FLAGS={}));var a;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(a=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var c;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(c=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[c.DELETE,c.GET,c.HEAD,c.POST,c.PUT,c.CONNECT,c.OPTIONS,c.TRACE,c.COPY,c.LOCK,c.MKCOL,c.MOVE,c.PROPFIND,c.PROPPATCH,c.SEARCH,c.UNLOCK,c.BIND,c.REBIND,c.UNBIND,c.ACL,c.REPORT,c.MKACTIVITY,c.CHECKOUT,c.MERGE,c["M-SEARCH"],c.NOTIFY,c.SUBSCRIBE,c.UNSUBSCRIBE,c.PATCH,c.PURGE,c.MKCALENDAR,c.LINK,c.UNLINK,c.PRI,c.SOURCE];t.METHODS_ICE=[c.SOURCE];t.METHODS_RTSP=[c.OPTIONS,c.DESCRIBE,c.ANNOUNCE,c.SETUP,c.PLAY,c.PAUSE,c.TEARDOWN,c.GET_PARAMETER,c.SET_PARAMETER,c.REDIRECT,c.RECORD,c.FLUSH,c.GET,c.POST];t.METHOD_MAP=n.enumToMap(c);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var u;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(u=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var A;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(A=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF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BCyABC6cBAQN/AkACQAJAIAAtACpFDQAgAC0AK0UNAEEAIQMgAC8BMCIEQQJxRQ0BDAILQQAhAyAALwEwIgRBAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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AJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzA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BACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA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yABC0kBAXsgAEEQav0MAAAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBT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GAtBrQEhEAwXC0GuASEQDBYLQQEhEAwVC0GvASEQDBQLQbABIRAMEwtBsQEhEAwSC0GzASEQDBELQbIBIRAMEAtBtAEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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ACRw1IQTwhEAz0AwsgASIBIAJHDUFBMSEQDPMDCyAALQAuQQFGDesDDIcCCyAAIAEiASACEMCAgIAAQQFHDeYBIABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAz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QQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIU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enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((r=>{const n=e[r];if(typeof n==="number"){t[r]=n}}));return t}t.enumToMap=enumToMap},47501:(e,t,r)=>{const{kClients:n}=r(36443);const s=r(59965);const{kAgent:o,kMockAgentSet:i,kMockAgentGet:a,kDispatches:c,kIsMockActive:u,kNetConnect:A,kGetNetConnect:l,kOptions:d,kFactory:p}=r(91117);const g=r(47365);const h=r(94004);const{matchValue:m,buildMockOptions:E}=r(53397);const{InvalidArgumentError:y,UndiciError:I}=r(68707);const C=r(28611);const b=r(91529);const B=r(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends C{constructor(e){super(e);this[A]=true;this[u]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new y("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new s(e);this[o]=t;this[n]=t[n];this[d]=E(e)}get(e){let t=this[a](e);if(!t){t=this[p](e);this[i](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[o].dispatch(e,t)}async close(){await this[o].close();this[n].clear()}deactivate(){this[u]=false}activate(){this[u]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[A])){this[A].push(e)}else{this[A]=[e]}}else if(typeof e==="undefined"){this[A]=true}else{throw new y("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[A]=false}get isMockActive(){return this[u]}[i](e,t){this[n].set(e,new FakeWeakRef(t))}[p](e){const t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new g(e,t):new h(e,t)}[a](e){const t=this[n].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[p]("http://localhost:9999");this[i](e,t);return t}for(const[t,r]of Array.from(this[n])){const n=r.deref();if(n&&typeof t!=="string"&&m(t,e)){const t=this[p](e);this[i](e,t);t[c]=n[c];return t}}}[l](){return this[A]}pendingInterceptors(){const e=this[n];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[c].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new B}={}){const t=this.pendingInterceptors();if(t.length===0){return}const r=new b("interceptor","interceptors").pluralize(t.length);throw new I(`\n${r.count} ${r.noun} ${r.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(86197);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockClient extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockClient},52429:(e,t,r)=>{const{UndiciError:n}=r(68707);class MockNotMatchedError extends n{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,r)=>{const{getResponseData:n,buildKey:s,addMockDispatch:o}=r(53397);const{kDispatches:i,kDispatchKey:a,kDefaultHeaders:c,kDefaultTrailers:u,kContentLength:A,kMockDispatch:l}=r(91117);const{InvalidArgumentError:d}=r(68707);const{buildURL:p}=r(3440);class MockScope{constructor(e){this[l]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("waitInMs must be a valid integer > 0")}this[l].delay=e;return this}persist(){this[l].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new d("repeatTimes must be a valid integer > 0")}this[l].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new d("opts must be an object")}if(typeof e.path==="undefined"){throw new d("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=p(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[a]=s(e);this[i]=t;this[c]={};this[u]={};this[A]=false}createMockScopeDispatchData(e,t,r={}){const s=n(t);const o=this[A]?{"content-length":s.length}:{};const i={...this[c],...o,...r.headers};const a={...this[u],...r.trailers};return{statusCode:e,data:t,headers:i,trailers:a}}validateReplyParameters(e,t,r){if(typeof e==="undefined"){throw new d("statusCode must be defined")}if(typeof t==="undefined"){throw new d("data must be defined")}if(typeof r!=="object"){throw new d("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const r=e(t);if(typeof r!=="object"){throw new d("reply options callback must return an object")}const{statusCode:n,data:s="",responseOptions:o={}}=r;this.validateReplyParameters(n,s,o);return{...this.createMockScopeDispatchData(n,s,o)}};const t=o(this[i],this[a],wrappedDefaultsCallback);return new MockScope(t)}const[t,r="",n={}]=[...arguments];this.validateReplyParameters(t,r,n);const s=this.createMockScopeDispatchData(t,r,n);const c=o(this[i],this[a],s);return new MockScope(c)}replyWithError(e){if(typeof e==="undefined"){throw new d("error must be defined")}const t=o(this[i],this[a],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new d("headers must be defined")}this[c]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new d("trailers must be defined")}this[u]=e;return this}replyContentLength(){this[A]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,r)=>{const{promisify:n}=r(39023);const s=r(35076);const{buildMockDispatch:o}=r(53397);const{kDispatches:i,kMockAgent:a,kClose:c,kOriginalClose:u,kOrigin:A,kOriginalDispatch:l,kConnected:d}=r(91117);const{MockInterceptor:p}=r(31511);const g=r(36443);const{InvalidArgumentError:h}=r(68707);class MockPool extends s{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new h("Argument opts.agent must implement Agent")}this[a]=t.agent;this[A]=e;this[i]=[];this[d]=1;this[l]=this.dispatch;this[u]=this.close.bind(this);this.dispatch=o.call(this);this.close=this[c]}get[g.kConnected](){return this[d]}intercept(e){return new p(e,this[i])}async[c](){await n(this[u])();this[d]=0;this[a][g.kClients].delete(this[A])}}e.exports=MockPool},91117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,r)=>{const{MockNotMatchedError:n}=r(52429);const{kDispatches:s,kMockAgent:o,kOriginalDispatch:i,kOrigin:a,kGetNetConnect:c}=r(91117);const{buildURL:u,nop:A}=r(3440);const{STATUS_CODES:l}=r(58611);const{types:{isPromise:d}}=r(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let r=0;r!e)).filter((({path:e})=>matchValue(safeUrl(e),s)));if(o.length===0){throw new n(`Mock dispatch not matched for path '${s}'`)}o=o.filter((({method:e})=>matchValue(e,t.method)));if(o.length===0){throw new n(`Mock dispatch not matched for method '${t.method}'`)}o=o.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(o.length===0){throw new n(`Mock dispatch not matched for body '${t.body}'`)}o=o.filter((e=>matchHeaders(e,t.headers)));if(o.length===0){throw new n(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return o[0]}function addMockDispatch(e,t,r){const n={timesInvoked:0,times:1,persist:false,consumed:false};const s=typeof r==="function"?{callback:r}:{...r};const o={...n,...t,pending:true,data:{error:null,...s}};e.push(o);return o}function deleteMockDispatch(e,t){const r=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(r!==-1){e.splice(r,1)}}function buildKey(e){const{path:t,method:r,body:n,headers:s,query:o}=e;return{path:t,method:r,body:n,headers:s,query:o}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,r])=>[...e,Buffer.from(`${t}`),Array.isArray(r)?r.map((e=>Buffer.from(`${e}`))):Buffer.from(`${r}`)]),[])}function getStatusText(e){return l[e]||"unknown"}async function getResponse(e){const t=[];for await(const r of e){t.push(r)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const r=buildKey(e);const n=getMockDispatch(this[s],r);n.timesInvoked++;if(n.data.callback){n.data={...n.data,...n.data.callback(e)}}const{data:{statusCode:o,data:i,headers:a,trailers:c,error:u},delay:l,persist:p}=n;const{timesInvoked:g,times:h}=n;n.consumed=!p&&g>=h;n.pending=g0){setTimeout((()=>{handleReply(this[s])}),l)}else{handleReply(this[s])}function handleReply(n,s=i){const u=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const l=typeof s==="function"?s({...e,headers:u}):s;if(d(l)){l.then((e=>handleReply(n,e)));return}const p=getResponseData(l);const g=generateKeyValues(a);const h=generateKeyValues(c);t.abort=A;t.onHeaders(o,g,resume,getStatusText(o));t.onData(Buffer.from(p));t.onComplete(h);deleteMockDispatch(n,r)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const t=this[a];const r=this[i];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(i){if(i instanceof n){const a=e[c]();if(a===false){throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(a,t)){r.call(this,s,o)}else{throw new n(`${i.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw i}}}else{r.call(this,s,o)}}}function checkNetConnect(e,t){const r=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,r.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...r}=e;return r}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,r)=>{const{Transform:n}=r(2203);const{Console:s}=r(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,r){r(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:r},persist:n,times:s,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:t,"Status code":r,Persistent:n?"✅":"❌",Invocations:o,Remaining:n?Infinity:s-o})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const n=e===1;const s=n?t:r;const o=n?this.singular:this.plural;return{...s,count:e,noun:o}}}},34869:e=>{const t=2048;const r=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&r}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&r;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,r)=>{const n=r(50001);const s=r(34869);const{kConnected:o,kSize:i,kRunning:a,kPending:c,kQueued:u,kBusy:A,kFree:l,kUrl:d,kClose:p,kDestroy:g,kDispatch:h}=r(36443);const m=r(24622);const E=Symbol("clients");const y=Symbol("needDrain");const I=Symbol("queue");const C=Symbol("closed resolve");const b=Symbol("onDrain");const B=Symbol("onConnect");const Q=Symbol("onDisconnect");const T=Symbol("onConnectionError");const v=Symbol("get dispatcher");const w=Symbol("add client");const _=Symbol("remove client");const O=Symbol("stats");class PoolBase extends n{constructor(){super();this[I]=new s;this[E]=[];this[u]=0;const e=this;this[b]=function onDrain(t,r){const n=e[I];let s=false;while(!s){const t=n.shift();if(!t){break}e[u]--;s=!this.dispatch(t.opts,t.handler)}this[y]=s;if(!this[y]&&e[y]){e[y]=false;e.emit("drain",t,[e,...r])}if(e[C]&&n.isEmpty()){Promise.all(e[E].map((e=>e.close()))).then(e[C])}};this[B]=(t,r)=>{e.emit("connect",t,[e,...r])};this[Q]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)};this[T]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)};this[O]=new m(this)}get[A](){return this[y]}get[o](){return this[E].filter((e=>e[o])).length}get[l](){return this[E].filter((e=>e[o]&&!e[y])).length}get[c](){let e=this[u];for(const{[c]:t}of this[E]){e+=t}return e}get[a](){let e=0;for(const{[a]:t}of this[E]){e+=t}return e}get[i](){let e=this[u];for(const{[i]:t}of this[E]){e+=t}return e}get stats(){return this[O]}async[p](){if(this[I].isEmpty()){return Promise.all(this[E].map((e=>e.close())))}else{return new Promise((e=>{this[C]=e}))}}async[g](e){while(true){const t=this[I].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[E].map((t=>t.destroy(e))))}[h](e,t){const r=this[v]();if(!r){this[y]=true;this[I].push({opts:e,handler:t});this[u]++}else if(!r.dispatch(e,t)){r[y]=true;this[y]=!this[v]()}return!this[y]}[w](e){e.on("drain",this[b]).on("connect",this[B]).on("disconnect",this[Q]).on("connectionError",this[T]);this[E].push(e);if(this[y]){process.nextTick((()=>{if(this[y]){this[b](e[d],[this,e])}}))}return this}[_](e){e.close((()=>{const t=this[E].indexOf(e);if(t!==-1){this[E].splice(t,1)}}));this[y]=this[E].some((e=>!e[y]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:E,kNeedDrain:y,kAddClient:w,kRemoveClient:_,kGetDispatcher:v}},24622:(e,t,r)=>{const{kFree:n,kConnected:s,kPending:o,kQueued:i,kRunning:a,kSize:c}=r(36443);const u=Symbol("pool");class PoolStats{constructor(e){this[u]=e}get connected(){return this[u][s]}get free(){return this[u][n]}get pending(){return this[u][o]}get queued(){return this[u][i]}get running(){return this[u][a]}get size(){return this[u][c]}}e.exports=PoolStats},35076:(e,t,r)=>{const{PoolBase:n,kClients:s,kNeedDrain:o,kAddClient:i,kGetDispatcher:a}=r(58640);const c=r(86197);const{InvalidArgumentError:u}=r(68707);const A=r(3440);const{kUrl:l,kInterceptors:d}=r(36443);const p=r(59136);const g=Symbol("options");const h=Symbol("connections");const m=Symbol("factory");function defaultFactory(e,t){return new c(e,t)}class Pool extends n{constructor(e,{connections:t,factory:r=defaultFactory,connect:n,connectTimeout:s,tls:o,maxCachedSessions:i,socketPath:a,autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E,allowH2:y,...I}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new u("invalid connections")}if(typeof r!=="function"){throw new u("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new u("connect must be a function or an object")}if(typeof n!=="function"){n=p({...o,maxCachedSessions:i,allowH2:y,socketPath:a,timeout:s,...A.nodeHasAutoSelectFamily&&c?{autoSelectFamily:c,autoSelectFamilyAttemptTimeout:E}:undefined,...n})}this[d]=I.interceptors&&I.interceptors.Pool&&Array.isArray(I.interceptors.Pool)?I.interceptors.Pool:[];this[h]=t||null;this[l]=A.parseOrigin(e);this[g]={...A.deepClone(I),connect:n,allowH2:y};this[g].interceptors=I.interceptors?{...I.interceptors}:undefined;this[m]=r}[a](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[h]||this[s].length{const{kProxy:n,kClose:s,kDestroy:o,kInterceptors:i}=r(36443);const{URL:a}=r(87016);const c=r(59965);const u=r(35076);const A=r(50001);const{InvalidArgumentError:l,RequestAbortedError:d}=r(68707);const p=r(59136);const g=Symbol("proxy agent");const h=Symbol("proxy client");const m=Symbol("proxy headers");const E=Symbol("request tls settings");const y=Symbol("proxy tls settings");const I=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new u(e,t)}class ProxyAgent extends A{constructor(e){super(e);this[n]=buildProxyOptions(e);this[g]=new c(e);this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new l("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new l("Proxy opts.clientFactory must be a function.")}this[E]=e.requestTls;this[y]=e.proxyTls;this[m]=e.headers||{};const r=new a(e.uri);const{origin:s,port:o,host:u,username:A,password:C}=r;if(e.auth&&e.token){throw new l("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[m]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[m]["proxy-authorization"]=e.token}else if(A&&C){this[m]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(A)}:${decodeURIComponent(C)}`).toString("base64")}`}const b=p({...e.proxyTls});this[I]=p({...e.requestTls});this[h]=t(r,{connect:b});this[g]=new c({...e,connect:async(e,t)=>{let r=e.host;if(!e.port){r+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:n,statusCode:i}=await this[h].connect({origin:s,port:o,path:r,signal:e.signal,headers:{...this[m],host:u}});if(i!==200){n.on("error",(()=>{})).destroy();t(new d(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,n);return}let a;if(this[E]){a=this[E].servername}else{a=e.servername}this[I]({...e,servername:a,httpSocket:n},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:r}=new a(e.origin);const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);return this[g].dispatch({...e,headers:{...n,host:r}},t)}async[s](){await this[g].close();await this[h].close()}async[o](){await this[g].destroy();await this[h].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let r=0;re.toLowerCase()==="proxy-authorization"));if(t){throw new l("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{let t=Date.now();let r;const n=[];function onTimeout(){t=Date.now();let e=n.length;let r=0;while(r0&&t>=s.state){s.state=-1;s.callback(s.opaque)}if(s.state===-1){s.state=-2;if(r!==e-1){n[r]=n.pop()}else{n.pop()}e-=1}else{r+=1}}if(n.length>0){refreshTimeout()}}function refreshTimeout(){if(r&&r.refresh){r.refresh()}else{clearTimeout(r);r=setTimeout(onTimeout,1e3);if(r.unref){r.unref()}}}class Timeout{constructor(e,t,r){this.callback=e;this.delay=t;this.opaque=r;this.state=-2;this.refresh()}refresh(){if(this.state===-2){n.push(this);if(!r||n.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,r){return t<1e3?setTimeout(e,t,r):new Timeout(e,t,r)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,r)=>{const n=r(31637);const{uid:s,states:o}=r(45913);const{kReadyState:i,kSentClose:a,kByteParser:c,kReceivedClose:u}=r(62933);const{fireEvent:A,failWebsocketConnection:l}=r(3574);const{CloseEvent:d}=r(46255);const{makeRequest:p}=r(25194);const{fetching:g}=r(12315);const{Headers:h}=r(26349);const{getGlobalDispatcher:m}=r(32581);const{kHeadersList:E}=r(36443);const y={};y.open=n.channel("undici:websocket:open");y.close=n.channel("undici:websocket:close");y.socketError=n.channel("undici:websocket:socket_error");let I;try{I=r(76982)}catch{}function establishWebSocketConnection(e,t,r,n,o){const i=e;i.protocol=e.protocol==="ws:"?"http:":"https:";const a=p({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new h(o.headers)[E];a.headersList=e}const c=I.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c);a.headersList.append("sec-websocket-version","13");for(const e of t){a.headersList.append("sec-websocket-protocol",e)}const u="";const A=g({request:a,useParallelQueue:true,dispatcher:o.dispatcher??m(),processResponse(e){if(e.type==="error"||e.status!==101){l(r,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){l(r,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){l(r,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){l(r,'Server did not set Connection header to "upgrade".');return}const o=e.headersList.get("Sec-WebSocket-Accept");const i=I.createHash("sha1").update(c+s).digest("base64");if(o!==i){l(r,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=e.headersList.get("Sec-WebSocket-Extensions");if(A!==null&&A!==u){l(r,"Received different permessage-deflate than the one set.");return}const d=e.headersList.get("Sec-WebSocket-Protocol");if(d!==null&&d!==a.headersList.get("Sec-WebSocket-Protocol")){l(r,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(y.open.hasSubscribers){y.open.publish({address:e.socket.address(),protocol:d,extensions:A})}n(e)}});return A}function onSocketData(e){if(!this.ws[c].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[a]&&e[u];let r=1005;let n="";const s=e[c].closingInfo;if(s){r=s.code??1005;n=s.reason}else if(!e[a]){r=1006}e[i]=o.CLOSED;A("close",e,d,{wasClean:t,code:r,reason:n});if(y.close.hasSubscribers){y.close.publish({websocket:e,code:r,reason:n})}}function onSocketError(e){const{ws:t}=this;t[i]=o.CLOSING;if(y.socketError.hasSubscribers){y.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const r={enumerable:true,writable:false,configurable:false};const n={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const s={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const o=2**16-1;const i={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const a=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:r,states:n,opcodes:s,maxUnsigned16Bit:o,parserStates:i,emptyBuffer:a}},46255:(e,t,r)=>{const{webidl:n}=r(74222);const{kEnumerableProperty:s}=r(3440);const{MessagePort:o}=r(28167);class MessageEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=n.converters.DOMString(e);t=n.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){n.brandCheck(this,MessageEvent);return this.#o.data}get origin(){n.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){n.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){n.brandCheck(this,MessageEvent);return this.#o.source}get ports(){n.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,r=false,s=null,o="",i="",a=null,c=[]){n.brandCheck(this,MessageEvent);n.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:r,data:s,origin:o,lastEventId:i,source:a,ports:c})}}class CloseEvent extends Event{#o;constructor(e,t={}){n.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=n.converters.DOMString(e);t=n.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){n.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){n.brandCheck(this,CloseEvent);return this.#o.code}get reason(){n.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){n.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=n.converters.DOMString(e);t=n.converters.ErrorEventInit(t??{});this.#o=t}get message(){n.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){n.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){n.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){n.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){n.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:s,origin:s,lastEventId:s,source:s,ports:s,initMessageEvent:s});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:s,code:s,wasClean:s});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:s,filename:s,lineno:s,colno:s,error:s});n.converters.MessagePort=n.interfaceConverter(o);n.converters["sequence"]=n.sequenceConverter(n.converters.MessagePort);const i=[{key:"bubbles",converter:n.converters.boolean,defaultValue:false},{key:"cancelable",converter:n.converters.boolean,defaultValue:false},{key:"composed",converter:n.converters.boolean,defaultValue:false}];n.converters.MessageEventInit=n.dictionaryConverter([...i,{key:"data",converter:n.converters.any,defaultValue:null},{key:"origin",converter:n.converters.USVString,defaultValue:""},{key:"lastEventId",converter:n.converters.DOMString,defaultValue:""},{key:"source",converter:n.nullableConverter(n.converters.MessagePort),defaultValue:null},{key:"ports",converter:n.converters["sequence"],get defaultValue(){return[]}}]);n.converters.CloseEventInit=n.dictionaryConverter([...i,{key:"wasClean",converter:n.converters.boolean,defaultValue:false},{key:"code",converter:n.converters["unsigned short"],defaultValue:0},{key:"reason",converter:n.converters.USVString,defaultValue:""}]);n.converters.ErrorEventInit=n.dictionaryConverter([...i,{key:"message",converter:n.converters.DOMString,defaultValue:""},{key:"filename",converter:n.converters.USVString,defaultValue:""},{key:"lineno",converter:n.converters["unsigned long"],defaultValue:0},{key:"colno",converter:n.converters["unsigned long"],defaultValue:0},{key:"error",converter:n.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,r)=>{const{maxUnsigned16Bit:n}=r(45913);let s;try{s=r(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=s.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t;let s=6;if(t>n){s+=8;r=127}else if(t>125){s+=2;r=126}const o=Buffer.allocUnsafe(t+s);o[0]=o[1]=0;o[0]|=128;o[0]=(o[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});for(const e of t){const{owner:t,repo:n,issue_number:s}=parseIssueUrl(e.url);await r.rest.issues.createComment({owner:t,repo:n,issue_number:s,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}function parsePriorityLabel(e){for(const t of e){let e="";if(typeof t==="string"){e=t}else{e=t.name||""}if(e.startsWith("Priority:")){const t=e.match(/Priority: (\d+)/i);if(!t){return 1}return Number(t[1])}}return 1}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a,prioritySpeed:c}}=e;const u=await getTaskAssignmentDetails(e,t,r);const A=DateTime.local();if(!u)return;const l=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const d=l.filter((e=>e.event==="assigned"&&u.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!d){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const p=(await getAssigneesActivityForIssue(e,r,u.taskAssignees)).filter((e=>o.includes(e.event))).shift();const g=DateTime.fromISO(d.created_at);const h=parsePriorityLabel(r.labels);const m=Math.max(1,h);const E=p?.created_at?DateTime.fromISO(p.created_at):undefined;let y=getMostRecentActivityDate(g,E);const I=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));I.push(r.html_url);const C=await Promise.all(I.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>y))})));const b=C.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:A.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(d.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:b?DateTime.fromISO(b.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:y.toLocaleString(DateTime.DATETIME_MED)});const B=a-i;if(b){const t=DateTime.fromISO(b.created_at);y=t>y?t:y;if(y.plus({milliseconds:c?B/m:B})<=A){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(y.plus({milliseconds:c?i/m:i})<=A){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url} still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),prioritySpeed:Oe.Boolean({default:true}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=r;if(r===126){o.writeUInt16BE(t,2)}else if(r===127){o[2]=o[3]=0;o.writeUIntBE(t,4,6)}o[1]|=128;for(let e=0;e{const{Writable:n}=r(2203);const s=r(31637);const{parserStates:o,opcodes:i,states:a,emptyBuffer:c}=r(45913);const{kReadyState:u,kSentClose:A,kResponse:l,kReceivedClose:d}=r(62933);const{isValidStatusCode:p,failWebsocketConnection:g,websocketMessageReceived:h}=r(3574);const{WebsocketFrameSend:m}=r(31237);const E={};E.ping=s.channel("undici:websocket:ping");E.pong=s.channel("undici:websocket:pong");class ByteParser extends n{#i=[];#a=0;#c=o.INFO;#u={};#A=[];constructor(e){super();this.ws=e}_write(e,t,r){this.#i.push(e);this.#a+=e.length;this.run(r)}run(e){while(true){if(this.#c===o.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#u.fin=(t[0]&128)!==0;this.#u.opcode=t[0]&15;this.#u.originalOpcode??=this.#u.opcode;this.#u.fragmented=!this.#u.fin&&this.#u.opcode!==i.CONTINUATION;if(this.#u.fragmented&&this.#u.opcode!==i.BINARY&&this.#u.opcode!==i.TEXT){g(this.ws,"Invalid frame type was fragmented.");return}const r=t[1]&127;if(r<=125){this.#u.payloadLength=r;this.#c=o.READ_DATA}else if(r===126){this.#c=o.PAYLOADLENGTH_16}else if(r===127){this.#c=o.PAYLOADLENGTH_64}if(this.#u.fragmented&&r>125){g(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#u.opcode===i.PING||this.#u.opcode===i.PONG||this.#u.opcode===i.CLOSE)&&r>125){g(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#u.opcode===i.CLOSE){if(r===1){g(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(r);this.#u.closeInfo=this.parseCloseBody(false,e);if(!this.ws[A]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#u.closeInfo.code,0);const t=new m(e);this.ws[l].socket.write(t.createFrame(i.CLOSE),(e=>{if(!e){this.ws[A]=true}}))}this.ws[u]=a.CLOSING;this.ws[d]=true;this.end();return}else if(this.#u.opcode===i.PING){const t=this.consume(r);if(!this.ws[d]){const e=new m(t);this.ws[l].socket.write(e.createFrame(i.PONG));if(E.ping.hasSubscribers){E.ping.publish({payload:t})}}this.#c=o.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#u.opcode===i.PONG){const t=this.consume(r);if(E.pong.hasSubscribers){E.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#c===o.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#u.payloadLength=t.readUInt16BE(0);this.#c=o.READ_DATA}else if(this.#c===o.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){g(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#u.payloadLength=(r<<8)+n;this.#c=o.READ_DATA}else if(this.#c===o.READ_DATA){if(this.#a=this.#u.payloadLength){const e=this.consume(this.#u.payloadLength);this.#A.push(e);if(!this.#u.fragmented||this.#u.fin&&this.#u.opcode===i.CONTINUATION){const e=Buffer.concat(this.#A);h(this.ws,this.#u.originalOpcode,e);this.#u={};this.#A.length=0}this.#c=o.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return c}if(this.#i[0].length===e){this.#a-=this.#i[0].length;return this.#i.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#i[0];const{length:s}=n;if(s+r===e){t.set(this.#i.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#i[0]=n.subarray(e-r);break}else{t.set(this.#i.shift(),r);r+=n.length}}this.#a-=e;return t}parseCloseBody(e,t){let r;if(t.length>=2){r=t.readUInt16BE(0)}if(e){if(!p(r)){return null}return{code:r}}let n=t.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}if(r!==undefined&&!p(r)){return null}try{n=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#u.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,r)=>{const{kReadyState:n,kController:s,kResponse:o,kBinaryType:i,kWebSocketURL:a}=r(62933);const{states:c,opcodes:u}=r(45913);const{MessageEvent:A,ErrorEvent:l}=r(46255);function isEstablished(e){return e[n]===c.OPEN}function isClosing(e){return e[n]===c.CLOSING}function isClosed(e){return e[n]===c.CLOSED}function fireEvent(e,t,r=Event,n){const s=new r(e,n);t.dispatchEvent(s)}function websocketMessageReceived(e,t,r){if(e[n]!==c.OPEN){return}let s;if(t===u.TEXT){try{s=new TextDecoder("utf-8",{fatal:true}).decode(r)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===u.BINARY){if(e[i]==="blob"){s=new Blob([r])}else{s=new Uint8Array(r).buffer}}fireEvent("message",e,A,{origin:e[a].origin,data:s})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[s]:r,[o]:n}=e;r.abort();if(n?.socket&&!n.socket.destroyed){n.socket.destroy()}if(t){fireEvent("error",e,l,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,r)=>{const{webidl:n}=r(74222);const{DOMException:s}=r(87326);const{URLSerializer:o}=r(94322);const{getGlobalOrigin:i}=r(75628);const{staticPropertyDescriptors:a,states:c,opcodes:u,emptyBuffer:A}=r(45913);const{kWebSocketURL:l,kReadyState:d,kController:p,kBinaryType:g,kResponse:h,kSentClose:m,kByteParser:E}=r(62933);const{isEstablished:y,isClosing:I,isValidSubprotocol:C,failWebsocketConnection:b,fireEvent:B}=r(3574);const{establishWebSocketConnection:Q}=r(68550);const{WebsocketFrameSend:T}=r(31237);const{ByteParser:v}=r(43171);const{kEnumerableProperty:w,isBlobLike:_}=r(3440);const{getGlobalDispatcher:O}=r(32581);const{types:k}=r(39023);let R=false;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#p="";#f="";constructor(e,t=[]){super();n.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!R){R=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const r=n.converters["DOMString or sequence or WebSocketInit"](t);e=n.converters.USVString(e);t=r.protocols;const o=i();let a;try{a=new URL(e,o)}catch(e){throw new s(e,"SyntaxError")}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}if(a.protocol!=="ws:"&&a.protocol!=="wss:"){throw new s(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError")}if(a.hash||a.href.endsWith("#")){throw new s("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>C(e)))){throw new s("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[l]=new URL(a.href);this[p]=Q(a,t,this,(e=>this.#g(e)),r);this[d]=WebSocket.CONNECTING;this[g]="blob"}close(e=undefined,t=undefined){n.brandCheck(this,WebSocket);if(e!==undefined){e=n.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=n.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new s("invalid code","InvalidAccessError")}}let r=0;if(t!==undefined){r=Buffer.byteLength(t);if(r>123){throw new s(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError")}}if(this[d]===WebSocket.CLOSING||this[d]===WebSocket.CLOSED){}else if(!y(this)){b(this,"Connection was closed before it was established.");this[d]=WebSocket.CLOSING}else if(!I(this)){const n=new T;if(e!==undefined&&t===undefined){n.frameData=Buffer.allocUnsafe(2);n.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){n.frameData=Buffer.allocUnsafe(2+r);n.frameData.writeUInt16BE(e,0);n.frameData.write(t,2,"utf-8")}else{n.frameData=A}const s=this[h].socket;s.write(n.createFrame(u.CLOSE),(e=>{if(!e){this[m]=true}}));this[d]=c.CLOSING}else{this[d]=WebSocket.CLOSING}}send(e){n.brandCheck(this,WebSocket);n.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=n.converters.WebSocketSendData(e);if(this[d]===WebSocket.CONNECTING){throw new s("Sent before connected.","InvalidStateError")}if(!y(this)||I(this)){return}const t=this[h].socket;if(typeof e==="string"){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.TEXT);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(k.isArrayBuffer(e)){const r=Buffer.from(e);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength);const n=new T(r);const s=n.createFrame(u.BINARY);this.#d+=r.byteLength;t.write(s,(()=>{this.#d-=r.byteLength}))}else if(_(e)){const r=new T;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const s=r.createFrame(u.BINARY);this.#d+=n.byteLength;t.write(s,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){n.brandCheck(this,WebSocket);return this[d]}get bufferedAmount(){n.brandCheck(this,WebSocket);return this.#d}get url(){n.brandCheck(this,WebSocket);return o(this[l])}get extensions(){n.brandCheck(this,WebSocket);return this.#f}get protocol(){n.brandCheck(this,WebSocket);return this.#p}get onopen(){n.brandCheck(this,WebSocket);return this.#l.open}set onopen(e){n.brandCheck(this,WebSocket);if(this.#l.open){this.removeEventListener("open",this.#l.open)}if(typeof e==="function"){this.#l.open=e;this.addEventListener("open",e)}else{this.#l.open=null}}get onerror(){n.brandCheck(this,WebSocket);return this.#l.error}set onerror(e){n.brandCheck(this,WebSocket);if(this.#l.error){this.removeEventListener("error",this.#l.error)}if(typeof e==="function"){this.#l.error=e;this.addEventListener("error",e)}else{this.#l.error=null}}get onclose(){n.brandCheck(this,WebSocket);return this.#l.close}set onclose(e){n.brandCheck(this,WebSocket);if(this.#l.close){this.removeEventListener("close",this.#l.close)}if(typeof e==="function"){this.#l.close=e;this.addEventListener("close",e)}else{this.#l.close=null}}get onmessage(){n.brandCheck(this,WebSocket);return this.#l.message}set onmessage(e){n.brandCheck(this,WebSocket);if(this.#l.message){this.removeEventListener("message",this.#l.message)}if(typeof e==="function"){this.#l.message=e;this.addEventListener("message",e)}else{this.#l.message=null}}get binaryType(){n.brandCheck(this,WebSocket);return this[g]}set binaryType(e){n.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[g]="blob"}else{this[g]=e}}#g(e){this[h]=e;const t=new v(this);t.on("drain",(function onParserDrain(){this.ws[h].socket.resume()}));e.socket.ws=this;this[E]=t;this[d]=c.OPEN;const r=e.headersList.get("sec-websocket-extensions");if(r!==null){this.#f=r}const n=e.headersList.get("sec-websocket-protocol");if(n!==null){this.#p=n}B("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=c.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=c.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=c.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=c.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a});n.converters["sequence"]=n.sequenceConverter(n.converters.DOMString);n.converters["DOMString or sequence"]=function(e){if(n.util.Type(e)==="Object"&&Symbol.iterator in e){return n.converters["sequence"](e)}return n.converters.DOMString(e)};n.converters.WebSocketInit=n.dictionaryConverter([{key:"protocols",converter:n.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return O()}},{key:"headers",converter:n.nullableConverter(n.converters.HeadersInit)}]);n.converters["DOMString or sequence or WebSocketInit"]=function(e){if(n.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return n.converters.WebSocketInit(e)}return{protocols:n.converters["DOMString or sequence"](e)}};n.converters.WebSocketSendData=function(e){if(n.util.Type(e)==="Object"){if(_(e)){return n.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||k.isAnyArrayBuffer(e)){return n.converters.BufferSource(e)}}return n.converters.USVString(e)};e.exports={WebSocket:WebSocket}},12048:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return l.default}});var n=_interopRequireDefault(r(6415));var s=_interopRequireDefault(r(51697));var o=_interopRequireDefault(r(4676));var i=_interopRequireDefault(r(69771));var a=_interopRequireDefault(r(37723));var c=_interopRequireDefault(r(15868));var u=_interopRequireDefault(r(36200));var A=_interopRequireDefault(r(37597));var l=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},10216:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;t["default"]=s},37723:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},17267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var s=parse;t["default"]=s},67879:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},12973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let o=s.length;function rng(){if(o>s.length-16){n.default.randomFillSync(s);o=0}return s.slice(o,o+=16)}},507:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(76982));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;t["default"]=s},37597:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!(0,n.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6415:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const A=t||new Array(16);e=e||{};let l=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(l==null||d==null){const t=e.random||(e.rng||n.default)();if(l==null){l=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let p=e.msecs!==undefined?e.msecs:Date.now();let g=e.nsecs!==undefined?e.nsecs:c+1;const h=p-a+(g-c)/1e4;if(h<0&&e.clockseq===undefined){d=d+1&16383}if((h<0||p>a)&&e.nsecs===undefined){g=0}if(g>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=p;c=g;i=d;p+=122192928e5;const m=((p&268435455)*1e4+g)%4294967296;A[u++]=m>>>24&255;A[u++]=m>>>16&255;A[u++]=m>>>8&255;A[u++]=m&255;const E=p/4294967296*1e4&268435455;A[u++]=E>>>8&255;A[u++]=E&255;A[u++]=E>>>24&15|16;A[u++]=E>>>16&255;A[u++]=d>>>8|128;A[u++]=d&255;for(let e=0;e<6;++e){A[u+e]=l[e]}return t||(0,s.default)(A)}var u=v1;t["default"]=u},51697:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(10216));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v3",48,s.default);var i=o;t["default"]=i},92930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var n=_interopRequireDefault(r(37597));var s=_interopRequireDefault(r(17267));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(12973));var s=_interopRequireDefault(r(37597));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||n.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,s.default)(o)}var o=v4;t["default"]=o},69771:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(92930));var s=_interopRequireDefault(r(507));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,n.default)("v5",80,s.default);var i=o;t["default"]=i},36200:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(67879));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;t["default"]=s},15868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(r(36200));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;t["default"]=s},58264: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{t.exports=e(import.meta.url)("assert")},90290:t=>{t.exports=e(import.meta.url)("async_hooks")},20181:t=>{t.exports=e(import.meta.url)("buffer")},64236:t=>{t.exports=e(import.meta.url)("console")},76982:t=>{t.exports=e(import.meta.url)("crypto")},31637:t=>{t.exports=e(import.meta.url)("diagnostics_channel")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},78474:t=>{t.exports=e(import.meta.url)("node:events")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},57975:t=>{t.exports=e(import.meta.url)("node:util")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},82987:t=>{t.exports=e(import.meta.url)("perf_hooks")},83480:t=>{t.exports=e(import.meta.url)("querystring")},2203:t=>{t.exports=e(import.meta.url)("stream")},63774:t=>{t.exports=e(import.meta.url)("stream/web")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},64756:t=>{t.exports=e(import.meta.url)("tls")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},98253:t=>{t.exports=e(import.meta.url)("util/types")},28167:t=>{t.exports=e(import.meta.url)("worker_threads")},43106:t=>{t.exports=e(import.meta.url)("zlib")},27182:(e,t,r)=>{const n=r(57075).Writable;const s=r(57975).inherits;const o=r(84136);const i=r(50612);const a=r(62271);const c=45;const u=Buffer.from("-");const A=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new a(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}s(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,r){if(!this._hparser&&!this._bparser){return r()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{const n=r(78474).EventEmitter;const s=r(57975).inherits;const o=r(22393);const i=r(84136);const a=Buffer.from("\r\n\r\n");const c=/\r\n/g;const u=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3);this.maxHeaderSize=o(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(a);this.ss.on("info",(function(e,r,n,s){if(r&&!t.maxed){if(t.nread+s-n>=t.maxHeaderSize){s=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=s-n}t.buffer+=r.toString("binary",n,s)}if(e){t._finish()}}))}s(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(c);const t=e.length;let r,n;for(var s=0;s{const n=r(57975).inherits;const s=r(57075).Readable;function PartStream(e){s.call(this,e)}n(PartStream,s);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,r)=>{const n=r(78474).EventEmitter;const s=r(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var r=0;r=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const r=this._lookbehind_size+o;if(r>0){this.emit("info",false,this._lookbehind,0,r)}this._lookbehind.copy(this._lookbehind,0,r,this._lookbehind_size-r);this._lookbehind_size-=r;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}o+=(o>=0)*this._bufpos;if(e.indexOf(r,o)!==-1){o=e.indexOf(r,o);++this.matches;if(o>0){this.emit("info",true,e,this._bufpos,o)}else{this.emit("info",true)}return this._bufpos=o+n}else{o=t-n}while(o0){this.emit("info",false,e,this._bufpos,o{const n=r(57075).Writable;const{inherits:s}=r(57975);const o=r(27182);const i=r(41192);const a=r(80855);const c=r(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...r}=e;this.opts={autoDestroy:false,...r};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}s(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=c(e["content-type"]);const r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,r)}if(a.detect.test(t[0])){return new a(this,r)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,r){this._parser.write(e,r)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=o},41192:(e,t,r)=>{const{Readable:n}=r(57075);const{inherits:s}=r(57975);const o=r(27182);const i=r(8929);const a=r(72747);const c=r(20692);const u=r(22393);const A=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const p=/^filename$/i;const g=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let r;let n;const s=this;let h;const m=t.limits;const E=t.isPartAFile||((e,t,r)=>t==="application/octet-stream"||r!==undefined);const y=t.parsedConType||[];const I=t.defCharset||"utf8";const C=t.preservePath;const b={highWaterMark:t.fileHwm};for(r=0,n=y.length;rw){s.parser.removeListener("part",onPart);s.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(D){const e=D;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(o){let u;let A;let h;let m;let y;let w;let _=0;if(o["content-type"]){h=i(o["content-type"][0]);if(h[0]){u=h[0].toLowerCase();for(r=0,n=h.length;rQ){const n=Q-_+e.length;if(n>0){r.push(e.slice(0,n))}r.truncated=true;r.bytesRead=Q;t.removeAllListeners("data");r.emit("limit");return}else if(!r.push(e)){s._pause=true}r.bytesRead=_};N=function(){F=undefined;r.push(null)}}else{if(R===v){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++R;++S;let r="";let n=false;D=t;O=function(e){if((_+=e.length)>B){const s=B-(_-e.length);r+=e.toString("binary",0,s);n=true;t.removeAllListeners("data")}else{r+=e.toString("binary")}};N=function(){D=undefined;if(r.length){r=a(r,"binary",m)}e.emit("field",A,r,false,n,y,u);--S;checkFinished()}}t._readableState.sync=false;t.on("data",O);t.on("end",N)})).on("error",(function(e){if(F){F.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){N=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const r=this.parser.write(e);if(r&&!this._pause){t()}else{this._needDrain=!r;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}s(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,r)=>{const n=r(11496);const s=r(72747);const o=r(22393);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const r=t.limits;const s=t.parsedConType;this.boy=e;this.fieldSizeLimit=o(r,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=o(r,"fieldNameSize",100);this.fieldsLimit=o(r,"fields",Infinity);let a;for(var c=0,u=s.length;ci){this._key+=this.decoder.write(e.toString("binary",i,r))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=r+1}else if(n!==undefined){++this._fields;let r;const o=this._keyTrunc;if(n>i){r=this._key+=this.decoder.write(e.toString("binary",i,n))}else{r=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(r.length){this.boy.emit("field",s(r,"binary",this.charset),"",o,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}i=o;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(ii){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(o>i){this._val+=this.decoder.write(e.toString("binary",i,o))}i=o;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i0){this.boy.emit("field",s(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",s(this._key,"binary",this.charset),s(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{const t=/\+/g;const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let s=0;let o=0;const i=e.length;for(;so){n+=e.substring(o,s);o=s}this.buffer="";++o}}if(o{e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){const t=new TextDecoder("utf-8");const r=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return n.other.bind(e)}}}const n={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(r.has(this.toString())){try{return r.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,r){if(e){return getDecoder(r)(e,t)}return e}e.exports=decodeText},22393:e=>{e.exports=function getLimit(e,t,r){if(!e||e[t]===undefined||e[t]===null){return r}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,r)=>{const n=r(72747);const s=/%[a-fA-F0-9][a-fA-F0-9]/g;const o={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return o[e]}const i=0;const a=1;const c=2;const u=3;function parseParams(e){const t=[];let r=i;let o="";let A=false;let l=false;let d=0;let p="";const g=e.length;for(var h=0;h{var n=r(41127);var s=r(63301);var o=r(84454);var i=r(92223);var a=r(87103);var c=r(90334);var u=r(13142);function resolveCollection(e,t,r,n,s,o){const i=r.type==="block-map"?a.resolveBlockMap(e,t,r,n,o):r.type==="block-seq"?c.resolveBlockSeq(e,t,r,n,o):u.resolveFlowCollection(e,t,r,n,o);const A=i.constructor;if(s==="!"||s===A.tagName){i.tag=A.tagName;return i}if(s)i.tag=s;return i}function composeCollection(e,t,r,a,c){const u=!a?null:t.directives.tagName(a.source,(e=>c(a,"TAG_RESOLVE_FAILED",e)));const A=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!a||!u||u==="!"||u===o.YAMLMap.tagName&&A==="map"||u===i.YAMLSeq.tagName&&A==="seq"||!A){return resolveCollection(e,t,r,c,u)}let l=t.schema.tags.find((e=>e.tag===u&&e.collection===A));if(!l){const n=t.schema.knownTags[u];if(n&&n.collection===A){t.schema.tags.push(Object.assign({},n,{default:false}));l=n}else{if(n?.collection){c(a,"BAD_COLLECTION_TYPE",`${n.tag} used for ${A} collection, but expects ${n.collection}`,true)}else{c(a,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,true)}return resolveCollection(e,t,r,c,u)}}const d=resolveCollection(e,t,r,c,u,l);const p=l.resolve?.(d,(e=>c(a,"TAG_RESOLVE_FAILED",e)),t.options)??d;const g=n.isNode(p)?p:new s.Scalar(p);g.range=d.range;g.tag=u;if(l?.format)g.format=l.format;return g}t.composeCollection=composeCollection},23683:(e,t,r)=>{var n=r(3021);var s=r(45937);var o=r(17788);var i=r(34631);function composeDoc(e,t,{offset:r,start:a,value:c,end:u},A){const l=Object.assign({_directives:t},e);const d=new n.Document(undefined,l);const p={atRoot:true,directives:d.directives,options:d.options,schema:d.schema};const g=i.resolveProps(a,{indicator:"doc-start",next:c??u?.[0],offset:r,onError:A,parentIndent:0,startOnNewline:true});if(g.found){d.directives.docStart=true;if(c&&(c.type==="block-map"||c.type==="block-seq")&&!g.hasNewline)A(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}d.contents=c?s.composeNode(p,c,g,A):s.composeEmptyNode(p,g.end,a,null,g,A);const h=d.contents.range[2];const m=o.resolveEnd(u,h,false,A);if(m.comment)d.comment=m.comment;d.range=[r,h,m.offset];return d}t.composeDoc=composeDoc},45937:(e,t,r)=>{var n=r(4065);var s=r(57349);var o=r(5413);var i=r(17788);var a=r(22599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,r,n){const{spaceBefore:i,comment:a,anchor:u,tag:A}=r;let l;let d=true;switch(t.type){case"alias":l=composeAlias(e,t,n);if(u||A)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=o.composeScalar(e,t,A,n);if(u)l.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":l=s.composeCollection(c,e,t,A,n);if(u)l.anchor=u.source.substring(1);break;default:{const s=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",s);l=composeEmptyNode(e,t.offset,undefined,null,r,n);d=false}}if(u&&l.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(i)l.spaceBefore=true;if(a){if(t.type==="scalar"&&t.source==="")l.comment=a;else l.commentBefore=a}if(e.options.keepSourceTokens&&d)l.srcToken=t;return l}function composeEmptyNode(e,t,r,n,{spaceBefore:s,comment:i,anchor:c,tag:u,end:A},l){const d={type:"scalar",offset:a.emptyScalarPosition(t,r,n),indent:-1,source:""};const p=o.composeScalar(e,d,u,l);if(c){p.anchor=c.source.substring(1);if(p.anchor==="")l(c,"BAD_ALIAS","Anchor cannot be an empty string")}if(s)p.spaceBefore=true;if(i){p.comment=i;p.range[2]=A}return p}function composeAlias({options:e},{offset:t,source:r,end:s},o){const a=new n.Alias(r.substring(1));if(a.source==="")o(t,"BAD_ALIAS","Alias cannot be an empty string");if(a.source.endsWith(":"))o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const c=t+r.length;const u=i.resolveEnd(s,c,e.strict,o);a.range=[t,c,u.offset];if(u.comment)a.comment=u.comment;return a}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(48913);var i=r(76842);function composeScalar(e,t,r,a){const{value:c,type:u,comment:A,range:l}=t.type==="block-scalar"?o.resolveBlockScalar(e,t,a):i.resolveFlowScalar(t,e.options.strict,a);const d=r?e.directives.tagName(r.source,(e=>a(r,"TAG_RESOLVE_FAILED",e))):null;const p=r&&d?findScalarTagByName(e.schema,c,d,r,a):t.type==="scalar"?findScalarTagByTest(e,c,t,a):e.schema[n.SCALAR];let g;try{const o=p.resolve(c,(e=>a(r??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(o)?o:new s.Scalar(o)}catch(e){const n=e instanceof Error?e.message:String(e);a(r??t,"TAG_RESOLVE_FAILED",n);g=new s.Scalar(c)}g.range=l;g.source=c;if(u)g.type=u;if(d)g.tag=d;if(p.format)g.format=p.format;if(A)g.comment=A;return g}function findScalarTagByName(e,t,r,s,o){if(r==="!")return e[n.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===r){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const a=e.knownTags[r];if(a&&!a.collection){e.tags.push(Object.assign({},a,{default:false,test:undefined}));return a}o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({directives:e,schema:t},r,s,o){const i=t.tags.find((e=>e.default&&e.test?.test(r)))||t[n.SCALAR];if(t.compat){const a=t.compat.find((e=>e.default&&e.test?.test(r)))??t[n.SCALAR];if(i.tag!==a.tag){const t=e.tagString(i.tag);const r=e.tagString(a.tag);const n=`Value may be parsed as either ${t} or ${r}`;o(s,"TAG_RESOLVE_FAILED",n,true)}}return i}t.composeScalar=composeScalar},89984:(e,t,r)=>{var n=r(61342);var s=r(3021);var o=r(91464);var i=r(41127);var a=r(23683);var c=r(17788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r==="string"?r.length:1)]}function parsePrelude(e){let t="";let r=false;let n=false;for(let s=0;s{const s=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(s,t,r));else this.errors.push(new o.YAMLParseError(s,t,r))};this.directives=new n.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:r,afterEmptyLine:n}=parsePrelude(this.prelude);if(r){const s=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${r}`:r}else if(n||e.directives.docStart||!s){e.commentBefore=r}else if(i.isCollection(s)&&!s.flow&&s.items.length>0){let e=s.items[0];if(i.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${r}\n${t}`:r}else{const e=s.commentBefore;s.commentBefore=e?`${r}\n${e}`:r}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,r=-1){for(const t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){if(process.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,r,n)=>{const s=getErrorPos(e);s[0]+=t;this.onError(s,"BAD_DIRECTIVE",r,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const r=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(r);else this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const r=new s.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t];this.decorate(r,false);yield r}}}t.Composer=Composer},87103:(e,t,r)=>{var n=r(57165);var s=r(84454);var o=r(34631);var i=r(9499);var a=r(74051);var c=r(81187);const u="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},r,A,l,d){const p=d?.nodeClass??s.YAMLMap;const g=new p(r.schema);if(r.atRoot)r.atRoot=false;let h=A.offset;let m=null;for(const s of A.items){const{start:d,key:p,sep:E,value:y}=s;const I=o.resolveProps(d,{indicator:"explicit-key-ind",next:p??E?.[0],offset:h,onError:l,parentIndent:A.indent,startOnNewline:true});const C=!I.found;if(C){if(p){if(p.type==="block-seq")l(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in p&&p.indent!==A.indent)l(h,"BAD_INDENT",u)}if(!I.anchor&&!I.tag&&!E){m=I.end;if(I.comment){if(g.comment)g.comment+="\n"+I.comment;else g.comment=I.comment}continue}if(I.hasNewlineAfterProp||i.containsNewline(p)){l(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==A.indent){l(h,"BAD_INDENT",u)}const b=I.end;const B=p?e(r,p,I,l):t(r,b,d,null,I,l);if(r.schema.compat)a.flowIndentCheck(A.indent,p,l);if(c.mapIncludes(r,g.items,B))l(b,"DUPLICATE_KEY","Map keys must be unique");const Q=o.resolveProps(E??[],{indicator:"map-value-ind",next:y,offset:B.range[2],onError:l,parentIndent:A.indent,startOnNewline:!p||p.type==="block-scalar"});h=Q.end;if(Q.found){if(C){if(y?.type==="block-map"&&!Q.hasNewline)l(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(r.options.strict&&I.start{var n=r(63301);function resolveBlockScalar(e,t,r){const s=t.offset;const o=parseBlockScalarHeader(t,e.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const i=o.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const a=t.source?splitLines(t.source):[];let c=a.length;for(let e=a.length-1;e>=0;--e){const t=a[e][1];if(t===""||t==="\r")c=e;else break}if(c===0){const e=o.chomp==="+"&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"";let r=s+o.length;if(t.source)r+=t.source.length;return{value:e,type:i,comment:o.comment,range:[s,r,r]}}let u=t.indent+o.indent;let A=t.offset+o.length;let l=0;for(let t=0;tu)u=n.length}else{if(n.length=c;--e){if(a[e][0].length>u)c=e+1}let d="";let p="";let g=false;for(let e=0;eu||s[0]==="\t"){if(p===" ")p="\n";else if(!g&&p==="\n")p="\n\n";d+=p+t.slice(u)+s;p="\n";g=true}else if(s===""){if(p==="\n")d+="\n";else p="\n"}else{d+=p+s;p=" ";g=false}}switch(o.chomp){case"-":break;case"+":for(let e=c;e{var n=r(92223);var s=r(34631);var o=r(74051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},r,i,a,c){const u=c?.nodeClass??n.YAMLSeq;const A=new u(r.schema);if(r.atRoot)r.atRoot=false;let l=i.offset;let d=null;for(const{start:n,value:c}of i.items){const u=s.resolveProps(n,{indicator:"seq-item-ind",next:c,offset:l,onError:a,parentIndent:i.indent,startOnNewline:true});if(!u.found){if(u.anchor||u.tag||c){if(c&&c.type==="block-seq")a(u.end,"BAD_INDENT","All sequence items must start at the same column");else a(l,"MISSING_CHAR","Sequence item without - indicator")}else{d=u.end;if(u.comment)A.comment=u.comment;continue}}const p=c?e(r,c,u,a):t(r,u.end,n,null,u,a);if(r.schema.compat)o.flowIndentCheck(i.indent,c,a);l=p.range[2];A.items.push(p)}A.range=[i.offset,l,d??l];return A}t.resolveBlockSeq=resolveBlockSeq},17788:(e,t)=>{function resolveEnd(e,t,r,n){let s="";if(e){let o=false;let i="";for(const a of e){const{source:e,type:c}=a;switch(c){case"space":o=true;break;case"comment":{if(r&&!o)n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!s)s=t;else s+=i+t;i="";break}case"newline":if(s)i+=e;o=true;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=e.length}}return{comment:s,offset:t}}t.resolveEnd=resolveEnd},13142:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);var i=r(92223);var a=r(17788);var c=r(34631);var u=r(9499);var A=r(81187);const l="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},r,d,p,g){const h=d.start.source==="{";const m=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?o.YAMLMap:i.YAMLSeq);const y=new E(r.schema);y.flow=true;const I=r.atRoot;if(I)r.atRoot=false;let C=d.offset+d.start.source.length;for(let i=0;i0){const e=a.resolveEnd(Q,T,r.options.strict,p);if(e.comment){if(y.comment)y.comment+="\n"+e.comment;else y.comment=e.comment}y.range=[d.offset,T,e.offset]}else{y.range=[d.offset,T,T]}return y}t.resolveFlowCollection=resolveFlowCollection},76842:(e,t,r)=>{var n=r(63301);var s=r(17788);function resolveFlowScalar(e,t,r){const{offset:o,type:i,source:a,end:c}=e;let u;let A;const _onError=(e,t,n)=>r(o+e,t,n);switch(i){case"scalar":u=n.Scalar.PLAIN;A=plainValue(a,_onError);break;case"single-quoted-scalar":u=n.Scalar.QUOTE_SINGLE;A=singleQuotedValue(a,_onError);break;case"double-quoted-scalar":u=n.Scalar.QUOTE_DOUBLE;A=doubleQuotedValue(a,_onError);break;default:r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[o,o+a.length,o+a.length]}}const l=o+a.length;const d=s.resolveEnd(c,l,t,r);return{value:A,type:u,comment:d.comment,range:[o,l,d.offset]}}function plainValue(e,t){let r="";switch(e[0]){case"\t":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}if(r)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,r;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):s}else{r+=s}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return r}function foldNewline(e,t){let r="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")r+="\n";t+=1;n=e[t+1]}if(!r)r=" ";return{fold:r,offset:t}}const o={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,r,n){const s=e.substr(t,r);const o=s.length===r&&/^[0-9a-fA-F]+$/.test(s);const i=o?parseInt(s,16):NaN;if(isNaN(i)){const s=e.substr(t-2,r+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${s}`);return s}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},34631:(e,t)=>{function resolveProps(e,{flow:t,indicator:r,next:n,offset:s,onError:o,parentIndent:i,startOnNewline:a}){let c=false;let u=a;let A=a;let l="";let d="";let p=false;let g=false;let h=false;let m=null;let E=null;let y=null;let I=null;let C=null;let b=null;for(const s of e){if(h){if(s.type!=="space"&&s.type!=="newline"&&s.type!=="comma")o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");h=false}if(m){if(u&&s.type!=="comment"&&s.type!=="newline"){o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation")}m=null}switch(s.type){case"space":if(!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&s.source.includes("\t")){m=s}A=true;break;case"comment":{if(!A)o(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=s.source.substring(1)||" ";if(!l)l=e;else l+=d+e;d="";u=false;break}case"newline":if(u){if(l)l+=s.source;else c=true}else d+=s.source;u=true;p=true;if(E||y)g=true;A=true;break;case"anchor":if(E)o(s,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(s.source.endsWith(":"))o(s.offset+s.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);E=s;if(b===null)b=s.offset;u=false;A=false;h=true;break;case"tag":{if(y)o(s,"MULTIPLE_TAGS","A node can have at most one tag");y=s;if(b===null)b=s.offset;u=false;A=false;h=true;break}case r:if(E||y)o(s,"BAD_PROP_ORDER",`Anchors and tags must be after the ${s.source} indicator`);if(C)o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.source} in ${t??"collection"}`);C=s;u=r==="seq-item-ind"||r==="explicit-key-ind";A=false;break;case"comma":if(t){if(I)o(s,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=s;u=false;A=false;break}default:o(s,"UNEXPECTED_TOKEN",`Unexpected ${s.type} token`);u=false;A=false}}const B=e[e.length-1];const Q=B?B.offset+B.source.length:s;if(h&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(m&&(u&&m.indent<=i||n?.type==="block-map"||n?.type==="block-seq"))o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:C,spaceBefore:c,comment:l,hasNewline:p,hasNewlineAfterProp:g,anchor:E,tag:y,end:Q,start:b??Q}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},22599:(e,t)=>{function emptyScalarPosition(e,t,r){if(t){if(r===null)r=t.length;for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space"){e+=r.source.length;r=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},74051:(e,t,r)=>{var n=r(9499);function flowIndentCheck(e,t,r){if(t?.type==="flow-collection"){const s=t.end[0];if(s.indent===e&&(s.source==="]"||s.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";r(s,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},81187:(e,t,r)=>{var n=r(41127);function mapIncludes(e,t,r){const{uniqueKeys:s}=e.options;if(s===false)return false;const o=typeof s==="function"?s:(t,r)=>t===r||n.isScalar(t)&&n.isScalar(r)&&t.value===r.value&&!(t.value==="<<"&&e.schema.merge);return t.some((e=>o(e.key,r)))}t.mapIncludes=mapIncludes},3021:(e,t,r)=>{var n=r(4065);var s=r(40101);var o=r(41127);var i=r(57165);var a=r(74043);var c=r(45840);var u=r(6829);var A=r(71596);var l=r(83661);var d=r(42404);var p=r(61342);class Document{constructor(e,t,r){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,o.NODE_TYPE,{value:o.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t;t=undefined}const s=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,uniqueKeys:true,version:"1.2"},r);this.options=s;let{version:i}=s;if(r?._directives){this.directives=r._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new p.Directives({version:i});this.setSchema(i,r);this.contents=e===undefined?null:this.createNode(e,n,r)}clone(){const e=Object.create(Document.prototype,{[o.NODE_TYPE]:{value:o.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=o.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const r=A.anchorNames(this);e.anchor=!t||r.has(t)?A.findNewAnchor(t||"a",r):t}return new n.Alias(e.anchor)}createNode(e,t,r){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(r===undefined&&t){r=t;t=undefined}const{aliasDuplicateObjects:s,anchorPrefix:i,flow:a,keepUndefined:c,onTagObj:u,tag:l}=r??{};const{onAnchor:p,setAnchors:g,sourceObjects:h}=A.createNodeAnchors(this,i||"a");const m={aliasDuplicateObjects:s??true,keepUndefined:c??false,onAnchor:p,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:h};const E=d.createNode(e,l,m);if(a&&o.isCollection(E))E.flow=true;g();return E}createPair(e,t,r={}){const n=this.createNode(e,null,r);const s=this.createNode(t,null,r);return new i.Pair(n,s)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return o.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&o.isScalar(this.contents)?this.contents.value:this.contents;return o.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return o.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return o.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=s.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(s.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=s.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let r;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new p.Directives({version:"1.1"});r={merge:true,resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new p.Directives({version:e});r={merge:false,resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;r=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new c.Schema(Object.assign(r,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:o}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:r===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const c=a.toJS(this.contents,t??"",i);if(typeof s==="function")for(const{count:e,res:t}of i.anchors.values())s(t,e);return typeof o==="function"?l.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return u.stringifyDocument(this,e)}}function assertCollection(e){if(o.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},71596:(e,t,r)=>{var n=r(41127);var s=r(10204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const r=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(r)}return true}function anchorNames(e){const t=new Set;s.visit(e,{Value(e,r){if(r.anchor)t.add(r.anchor)}});return t}function findNewAnchor(e,t){for(let r=1;true;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const r=[];const s=new Map;let o=null;return{onAnchor:n=>{r.push(n);if(!o)o=anchorNames(e);const s=findNewAnchor(t,o);o.add(s);return s},setAnchors:()=>{for(const e of r){const t=s.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:s}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},83661:(e,t)=>{function applyReviver(e,t,r,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,r=n.length;t{var n=r(4065);var s=r(41127);var o=r(63301);const i="tag:yaml.org,2002:";function findTagObject(e,t,r){if(t){const e=r.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,r){if(s.isDocument(e))e=e.contents;if(s.isNode(e))return e;if(s.isPair(e)){const t=r.schema[s.MAP].createNode?.(r.schema,null,r);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:a,onAnchor:c,onTagObj:u,schema:A,sourceObjects:l}=r;let d=undefined;if(a&&e&&typeof e==="object"){d=l.get(e);if(d){if(!d.anchor)d.anchor=c(e);return new n.Alias(d.anchor)}else{d={anchor:null,node:null};l.set(e,d)}}if(t?.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,A.tags);if(!p){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new o.Scalar(e);if(d)d.node=t;return t}p=e instanceof Map?A[s.MAP]:Symbol.iterator in Object(e)?A[s.SEQ]:A[s.MAP]}if(u){u(p);delete r.onTagObj}const g=p?.createNode?p.createNode(r.schema,e,r):typeof p?.nodeClass?.from==="function"?p.nodeClass.from(r.schema,e,r):new o.Scalar(e);if(t)g.tag=t;else if(!p.default)g.tag=p.tag;if(d)d.node=g;return g}t.createNode=createNode},61342:(e,t,r)=>{var n=r(41127);var s=r(10204);const o={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>o[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const r=e.trim().split(/[ \t]+/);const n=r.shift();switch(n){case"%TAG":{if(r.length!==2){t(0,"%TAG directive should contain exactly two parts");if(r.length<2)return false}const[e,n]=r;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(r.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=r;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const r=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,r);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const r=e.slice(2,-1);if(r==="!"||r==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return r}const[,r,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const s=this.tags[r];if(s){try{return s+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(r==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,r]of Object.entries(this.tags)){if(e.startsWith(r))return t+escapeTagName(e.substring(r.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const r=Object.entries(this.tags);let o;if(e&&r.length>0&&n.isNode(e.contents)){const t={};s.visit(e.contents,((e,r)=>{if(n.isNode(r)&&r.tag)t[r.tag]=true}));o=Object.keys(t)}else o=[];for(const[n,s]of r){if(n==="!!"&&s==="tag:yaml.org,2002:")continue;if(!e||o.some((e=>e.startsWith(s))))t.push(`%TAG ${n} ${s}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},91464:(e,t)=>{class YAMLError extends Error{constructor(e,t,r,n){super();this.name=e;this.code=r;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class YAMLWarning extends YAMLError{constructor(e,t,r){super("YAMLWarning",e,t,r)}}const prettifyError=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map((e=>t.linePos(e)));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let o=s-1;let i=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&i.length>80){const e=Math.min(o-39,i.length-79);i="…"+i.substring(e);o-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(n>1&&/^ *$/.test(i.substring(0,o))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(r.length>80)r=r.substring(0,79)+"…\n";i=r+i}if(/[^ ]/.test(i)){let e=1;const t=r.linePos[1];if(t&&t.line===n&&t.col>s){e=Math.max(1,Math.min(t.col-s,80-o))}const a=" ".repeat(o)+"^".repeat(e);r.message+=`:\n\n${i}\n${a}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},38815:(e,t,r)=>{var n;var s=r(89984);var o=r(3021);var i=r(45840);var a=r(91464);var c=r(4065);var u=r(41127);var A=r(57165);var l=r(63301);var d=r(84454);var p=r(92223);var g=r(3461);var h=r(40361);var m=r(66628);var E=r(3456);var y=r(84047);var I=r(10204);n=s.Composer;n=o.Document;n=i.Schema;n=a.YAMLError;n=a.YAMLParseError;n=a.YAMLWarning;n=c.Alias;n=u.isAlias;n=u.isCollection;n=u.isDocument;n=u.isMap;n=u.isNode;n=u.isPair;n=u.isScalar;n=u.isSeq;n=A.Pair;n=l.Scalar;n=d.YAMLMap;n=p.YAMLSeq;n=g;n=h.Lexer;n=m.LineCounter;n=E.Parser;n=y.parse;n=y.parseAllDocuments;n=y.parseDocument;n=y.stringify;n=I.visit;n=I.visitAsync},57249:(e,t)=>{function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,r)=>{var n=r(71596);var s=r(10204);var o=r(41127);var i=r(66673);var a=r(74043);class Alias extends i.NodeBase{constructor(e){super(o.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;s.visit(e,{Node:(e,r)=>{if(r===this)return s.visit.BREAK;if(r.anchor===this.source)t=r}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:r,doc:n,maxAliasCount:s}=t;const o=this.resolve(n);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=r.get(o);if(!i){a.toJS(o,null,t);i=r.get(o)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(s>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(n,o,r);if(i.count*i.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,r){const s=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${s} `}return s}}function getAliasCount(e,t,r){if(o.isAlias(t)){const n=t.resolve(e);const s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(o.isCollection(t)){let n=0;for(const s of t.items){const t=getAliasCount(e,s,r);if(t>n)n=t}return n}else if(o.isPair(t)){const n=getAliasCount(e,t.key,r);const s=getAliasCount(e,t.value,r);return Math.max(n,s)}return 1}t.Alias=Alias},40101:(e,t,r)=>{var n=r(42404);var s=r(41127);var o=r(66673);function collectionFromPath(e,t,r){let s=r;for(let e=t.length-1;e>=0;--e){const r=t[e];if(typeof r==="number"&&Number.isInteger(r)&&r>=0){const e=[];e[r]=s;s=e}else{s=new Map([[r,s]])}}return n.createNode(s,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends o.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>s.isNode(t)||s.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[r,...n]=e;const o=this.get(r,true);if(s.isCollection(o))o.addIn(n,t);else if(o===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){const[t,...r]=e;if(r.length===0)return this.delete(t);const n=this.get(t,true);if(s.isCollection(n))return n.deleteIn(r);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){const[r,...n]=e;const o=this.get(r,true);if(n.length===0)return!t&&s.isScalar(o)?o.value:o;else return s.isCollection(o)?o.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!s.isPair(t))return false;const r=t.value;return r==null||e&&s.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag}))}hasIn(e){const[t,...r]=e;if(r.length===0)return this.has(t);const n=this.get(t,true);return s.isCollection(n)?n.hasIn(r):false}setIn(e,t){const[r,...n]=e;if(n.length===0){this.set(r,t)}else{const e=this.get(r,true);if(s.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(r,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}Collection.maxFlowStringSingleLineLength=60;t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},66673:(e,t,r)=>{var n=r(83661);var s=r(41127);var o=r(74043);class NodeBase{constructor(e){Object.defineProperty(this,s.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!s.isDocument(e))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof r==="number"?r:100};const u=o.toJS(this,"",c);if(typeof i==="function")for(const{count:e,res:t}of c.anchors.values())i(t,e);return typeof a==="function"?n.applyReviver(a,{"":u},"",u):u}}t.NodeBase=NodeBase},57165:(e,t,r)=>{var n=r(42404);var s=r(59748);var o=r(97104);var i=r(41127);function createPair(e,t,r){const s=n.createNode(e,undefined,r);const o=n.createNode(t,undefined,r);return new Pair(s,o)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:r}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(r))r=r.clone(e);return new Pair(t,r)}toJSON(e,t){const r=t?.mapAsMap?new Map:{};return o.addPairToJSMap(t,r,this)}toString(e,t,r){return e?.doc?s.stringifyPair(this,e,t,r):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},63301:(e,t,r)=>{var n=r(41127);var s=r(66673);var o=r(74043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends s.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:o.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},84454:(e,t,r)=>{var n=r(61212);var s=r(97104);var o=r(40101);var i=r(41127);var a=r(57165);var c=r(63301);function findPair(e,t){const r=i.isScalar(t)?t.value:t;for(const n of e){if(i.isPair(n)){if(n.key===t||n.key===r)return n;if(i.isScalar(n.key)&&n.key.value===r)return n}}return undefined}class YAMLMap extends o.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,r){const{keepUndefined:n,replacer:s}=r;const o=new this(e);const add=(e,i)=>{if(typeof s==="function")i=s.call(t,e,i);else if(Array.isArray(s)&&!s.includes(e))return;if(i!==undefined||n)o.items.push(a.createPair(e,i,r))};if(t instanceof Map){for(const[e,r]of t)add(e,r)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){o.items.sort(e.sortMapEntries)}return o}add(e,t){let r;if(i.isPair(e))r=e;else if(!e||typeof e!=="object"||!("key"in e)){r=new a.Pair(e,e?.value)}else r=new a.Pair(e.key,e.value);const n=findPair(this.items,r.key);const s=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${r.key} already set`);if(i.isScalar(n.value)&&c.isScalarValue(r.value))n.value.value=r.value;else n.value=r.value}else if(s){const e=this.items.findIndex((e=>s(r,e)<0));if(e===-1)this.items.push(r);else this.items.splice(e,0,r)}else{this.items.push(r)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const r=this.items.splice(this.items.indexOf(t),1);return r.length>0}get(e,t){const r=findPair(this.items,e);const n=r?.value;return(!t&&i.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new a.Pair(e,t),true)}toJSON(e,t,r){const n=r?new r:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)s.addPairToJSMap(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},92223:(e,t,r)=>{var n=r(42404);var s=r(61212);var o=r(40101);var i=r(41127);var a=r(63301);var c=r(74043);class YAMLSeq extends o.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const r=this.items.splice(t,1);return r.length>0}get(e,t){const r=asItemIndex(e);if(typeof r!=="number")return undefined;const n=this.items[r];return!t&&i.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},97104:(e,t,r)=>{var n=r(57249);var s=r(2148);var o=r(41127);var i=r(63301);var a=r(74043);const c="<<";function addPairToJSMap(e,t,{key:r,value:n}){if(e?.doc.schema.merge&&isMergeKey(r)){n=o.isAlias(n)?n.resolve(e.doc):n;if(o.isSeq(n))for(const r of n.items)mergeToJSMap(e,t,r);else if(Array.isArray(n))for(const r of n)mergeToJSMap(e,t,r);else mergeToJSMap(e,t,n)}else{const s=a.toJS(r,"",e);if(t instanceof Map){t.set(s,a.toJS(n,s,e))}else if(t instanceof Set){t.add(s)}else{const o=stringifyKey(r,s,e);const i=a.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:i,writable:true,enumerable:true,configurable:true});else t[o]=i}}return t}const isMergeKey=e=>e===c||o.isScalar(e)&&e.value===c&&(!e.type||e.type===i.Scalar.PLAIN);function mergeToJSMap(e,t,r){const n=e&&o.isAlias(r)?r.resolve(e.doc):r;if(!o.isMap(n))throw new Error("Merge sources must be maps or map aliases");const s=n.toJSON(null,e,Map);for(const[e,r]of s){if(t instanceof Map){if(!t.has(e))t.set(e,r)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:r,writable:true,enumerable:true,configurable:true})}}return t}function stringifyKey(e,t,r){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&r?.doc){const t=s.createStringifyContext(r.doc,{});t.anchors=new Set;for(const e of r.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const o=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(o);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);r.mapKeyWarned=true}return o}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},41127:(e,t)=>{const r=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const s=Symbol.for("yaml.map");const o=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const a=Symbol.for("yaml.seq");const c=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[c]===r;const isDocument=e=>!!e&&typeof e==="object"&&e[c]===n;const isMap=e=>!!e&&typeof e==="object"&&e[c]===s;const isPair=e=>!!e&&typeof e==="object"&&e[c]===o;const isScalar=e=>!!e&&typeof e==="object"&&e[c]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[c]===a;function isCollection(e){if(e&&typeof e==="object")switch(e[c]){case s:case a:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[c]){case r:case s:case i:case a:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=r;t.DOC=n;t.MAP=s;t.NODE_TYPE=c;t.PAIR=o;t.SCALAR=i;t.SEQ=a;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},74043:(e,t,r)=>{var n=r(41127);function toJS(e,t,r){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),r)));if(e&&typeof e.toJSON==="function"){if(!r||!n.hasAnchor(e))return e.toJSON(t,r);const s={aliasCount:0,count:1,res:undefined};r.anchors.set(e,s);r.onCreate=e=>{s.res=e;delete r.onCreate};const o=e.toJSON(t,r);if(r.onCreate)r.onCreate(o);return o}if(typeof e==="bigint"&&!r?.keep)return Number(e);return e}t.toJS=toJS},60110:(e,t,r)=>{var n=r(48913);var s=r(76842);var o=r(91464);var i=r(83069);function resolveAsScalar(e,t=true,r){if(e){const _onError=(e,t,n)=>{const s=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(r)r(s,t,n);else throw new o.YAMLParseError([s,s+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return s.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:r=false,indent:n,inFlow:s=false,offset:o=-1,type:a="PLAIN"}=t;const c=i.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:s,options:{blockQuote:true,lineWidth:-1}});const u=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(c[0]){case"|":case">":{const e=c.indexOf("\n");const t=c.substring(0,e);const r=c.substring(e+1)+"\n";const s=[{type:"block-scalar-header",offset:o,indent:n,source:t}];if(!addEndtoBlockProps(s,u))s.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:o,indent:n,props:s,source:r}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:c,end:u};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:c,end:u};default:return{type:"scalar",offset:o,indent:n,source:c,end:u}}}function setScalarValue(e,t,r={}){let{afterKey:n=false,implicitKey:s=false,inFlow:o=false,type:a}=r;let c="indent"in e?e.indent:null;if(n&&typeof c==="number")c+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const u=i.stringifyString({type:a,value:t},{implicitKey:s||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:true,lineWidth:-1}});switch(u[0]){case"|":case">":setBlockScalarValue(e,u);break;case'"':setFlowScalarValue(e,u,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,u,"single-quoted-scalar");break;default:setFlowScalarValue(e,u,"scalar")}}function setBlockScalarValue(e,t){const r=t.indexOf("\n");const n=t.substring(0,r);const s=t.substring(r+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=s}else{const{offset:t}=e;const r="indent"in e?e.indent:-1;const o=[{type:"block-scalar-header",offset:t,indent:r,source:n}];if(!addEndtoBlockProps(o,"end"in e?e.end:undefined))o.push({type:"newline",offset:-1,indent:r,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:r,props:o,source:s})}}function addEndtoBlockProps(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":e.push(r);return true}return false}function setFlowScalarValue(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let s=t.length;if(e.props[0].type==="block-scalar-header")s-=e.props[0].source.length;for(const e of n)e.offset+=s;delete e.props;Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const s={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:r,source:t,end:[s]});break}default:{const n="indent"in e?e.indent:-1;const s="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:r,indent:n,source:t,end:s})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},91733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=stringifyToken(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=stringifyItem(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=stringifyItem(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function stringifyItem({start:e,key:t,sep:r,value:n}){let s="";for(const t of e)s+=t.source;if(t)s+=stringifyToken(t);if(r)for(const e of r)s+=e.source;if(n)s+=stringifyToken(n);return s}t.stringify=stringify},97715:(e,t)=>{const r=Symbol("break visit");const n=Symbol("skip children");const s=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=s;visit.itemAtPath=(e,t)=>{let r=e;for(const[e,n]of t){const t=r?.[e];if(t&&"items"in t){r=t.items[n]}else return undefined}return r};visit.parentCollection=(e,t)=>{const r=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const s=r?.[n];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function _visit(e,t,n){let o=n(t,e);if(typeof o==="symbol")return o;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let t=0;t{var n=r(60110);var s=r(91733);var o=r(97715);const i="\ufeff";const a="";const c="";const u="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case a:return"";case c:return"";case u:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case a:return"doc-mode";case c:return"flow-error-end";case u:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=s.stringify;t.visit=o.visit;t.BOM=i;t.DOCUMENT=a;t.FLOW_END=c;t.SCALAR=u;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},40361:(e,t,r)=>{var n=r(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const s=new Set("0123456789ABCDEFabcdef");const o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const a=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||a.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";while(r&&(t||this.hasChars(1)))r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;while(t===" ")t=this.buffer[++r+e];if(t==="\r"){const t=this.buffer[r+e+1];if(t==="\n"||!t&&!this.atEnd)return e+r+1}return t==="\n"||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let r=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=r=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const s=this.getLine();if(s===null)return this.setNext("flow");if(r!==-1&&r"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let r;e:for(let n=this.pos;r=this.buffer[n];++n){switch(r){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;r=this.buffer[s];while(r===" ")r=this.buffer[++s];if(r==="\t"){while(r==="\t"||r===" "||r==="\r"||r==="\n")r=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep){do{let r=e-1;let n=this.buffer[r];if(n==="\r")n=this.buffer[--r];const s=r;while(n===" ")n=this.buffer[--r];if(n==="\n"&&r>=this.pos&&r+1+t>s)e=r;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let r=this.pos-1;let s;while(s=this.buffer[++r]){if(s===":"){const n=this.buffer[r+1];if(isEmpty(n)||e&&i.has(n))break;t=r}else if(isEmpty(s)){let n=this.buffer[r+1];if(s==="\r"){if(n==="\n"){r+=1;s="\n";n=this.buffer[r+1]}else t=r}if(n==="#"||e&&i.has(n))break;if(s==="\n"){const e=this.continueScalar(r+1);if(e===-1)break;r=Math.max(r,e-2)}}else{if(e&&i.has(s))break;t=r}}if(!s&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const r=this.buffer.slice(this.pos,e);if(r){yield r;this.pos+=r.length;return r.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(o.has(t))t=this.buffer[++e];else if(t==="%"&&s.has(this.buffer[e+1])&&s.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let r;do{r=this.buffer[++t]}while(r===" "||e&&r==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let r=this.buffer[t];while(!e(r))r=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},66628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let r=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=r(3461);var s=r(40361);function includesToken(e,t){for(let r=0;r=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new s.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const r of this.lexer.lex(e,t))yield*this.next(r);if(!t)yield*this.end()}*next(e){this.source=e;if(process.env.LOG_TOKENS)console.log("|",n.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=n.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(r.sep){r.value=t}else{Object.assign(r,{key:t,sep:[]});this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=e.items[e.items.length-1];if(r.value)e.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{const r=e.items[e.items.length-1];if(!r||r.value)e.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&findNonEmptyIndex(r.start)===-1&&(t.indent===0||r.start.every((e=>e.type!=="comment"||e.indent=e.indent){const r=!this.onKeyLine&&this.indent===e.indent;const n=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(n&&t.sep&&!t.value){const r=[];for(let n=0;ne.indent)r.length=0;break;default:r.length=0}}if(r.length>=2)s=t.sep.splice(r[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){s.push(this.sourceToken);e.items.push({start:s});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){s.push(this.sourceToken);e.items.push({start:s,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const r=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key,delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else if(s.length>0){t.sep=t.sep.concat(s,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:s,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(n||t.value){e.items.push({start:s,key:r,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(r)}else{Object.assign(t,{key:r,sep:[]});this.onKeyLine=true}return}default:{const t=this.startBlockValue(e);if(t){if(r&&t.type!=="block-seq"){e.items.push({start:s})}this.stack.push(t);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:undefined;const n=Array.isArray(r)?r[r.length-1]:undefined;if(n?.type==="comment")r?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2];const n=r?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);if(r)this.stack.push(r);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const r=getPrevProps(t);const n=getFirstKeyStartProps(r);fixFlowSeqItems(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=true;this.stack[this.stack.length-1]=o}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);r.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const r=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},84047:(e,t,r)=>{var n=r(89984);var s=r(3021);var o=r(91464);var i=r(57249);var a=r(66628);var c=r(3456);function parseOptions(e){const t=e.prettyErrors!==false;const r=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:r,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);const u=Array.from(a.compose(i.parse(e)));if(s&&r)for(const t of u){t.errors.forEach(o.prettifyError(e,r));t.warnings.forEach(o.prettifyError(e,r))}if(u.length>0)return u;return Object.assign([],{empty:true},a.streamInfo())}function parseDocument(e,t={}){const{lineCounter:r,prettyErrors:s}=parseOptions(t);const i=new c.Parser(r?.addNewLine);const a=new n.Composer(t);let u=null;for(const t of a.compose(i.parse(e),true,e.length)){if(!u)u=t;else if(u.options.logLevel!=="silent"){u.errors.push(new o.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(s&&r){u.errors.forEach(o.prettifyError(e,r));u.warnings.forEach(o.prettifyError(e,r))}return u}function parse(e,t,r){let n=undefined;if(typeof t==="function"){n=t}else if(r===undefined&&t&&typeof t==="object"){r=t}const s=parseDocument(e,r);if(!s)return null;s.warnings.forEach((e=>i.warn(s.options.logLevel,e)));if(s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];else s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function stringify(e,t,r){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(r===undefined&&t){r=t}if(typeof r==="string")r=r.length;if(typeof r==="number"){const e=Math.round(r);r=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=r??t??{};if(!e)return undefined}return new s.Document(e,n,r).toString(r)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},45840:(e,t,r)=>{var n=r(41127);var s=r(47451);var o=r(1706);var i=r(66464);var a=r(90018);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:c,schema:u,sortMapEntries:A,toStringDefaults:l}){this.compat=Array.isArray(e)?a.getTags(e,"compat"):e?a.getTags(null,e):null;this.merge=!!r;this.name=typeof u==="string"&&u||"core";this.knownTags=c?a.coreKnownTags:{};this.tags=a.getTags(t,this.name);this.toStringOptions=l??null;Object.defineProperty(this,n.MAP,{value:s.map});Object.defineProperty(this,n.SCALAR,{value:i.string});Object.defineProperty(this,n.SEQ,{value:o.seq});this.sortMapEntries=typeof A==="function"?A:A===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},47451:(e,t,r)=>{var n=r(41127);var s=r(84454);const o={collection:"map",default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,r)=>s.YAMLMap.from(e,t,r)};t.map=o},73632:(e,t,r)=>{var n=r(63301);const s={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&s.test.test(e)?e:t.options.nullStr};t.nullTag=s},1706:(e,t,r)=>{var n=r(41127);var s=r(92223);const o={collection:"seq",default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,r)=>s.YAMLSeq.from(e,t,r)};t.seq=o},66464:(e,t,r)=>{var n=r(83069);const s={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,s){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,r,s)}};t.string=s},73959:(e,t,r)=>{var n=r(63301);const s={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&s.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?r.options.trueStr:r.options.falseStr}};t.boolTag=s},38405:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const r=e.indexOf(".");if(r!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-r-1;return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},59874:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)&&s>=0)return r+s.toString(t);return n.stringifyNumber(e)}const s={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>intResolve(e,2,8,r),stringify:e=>intStringify(e,8,"0o")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intHex=i;t.intOct=s},70896:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);const A=[n.map,o.seq,i.string,s.nullTag,a.boolTag,u.intOct,u.int,u.intHex,c.floatNaN,c.floatExp,c.float];t.schema=A},33559:(e,t,r)=>{var n=r(63301);var s=r(47451);var o=r(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const a={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const c=[s.map,o.seq].concat(i,a);t.schema=c},90018:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(73959);var c=r(38405);var u=r(59874);var A=r(70896);var l=r(33559);var d=r(56083);var p=r(50303);var g=r(18385);var h=r(35913);var m=r(81528);var E=r(46752);const y=new Map([["core",A.schema],["failsafe",[n.map,o.seq,i.string]],["json",l.schema],["yaml11",h.schema],["yaml-1.1",h.schema]]);const I={binary:d.binary,bool:a.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:E.floatTime,int:u.int,intHex:u.intHex,intOct:u.intOct,intTime:E.intTime,map:n.map,null:s.nullTag,omap:p.omap,pairs:g.pairs,seq:o.seq,set:m.set,timestamp:E.timestamp};const C={"tag:yaml.org,2002:binary":d.binary,"tag:yaml.org,2002:omap":p.omap,"tag:yaml.org,2002:pairs":g.pairs,"tag:yaml.org,2002:set":m.set,"tag:yaml.org,2002:timestamp":E.timestamp};function getTags(e,t){let r=y.get(t);if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(y.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}return r.map((e=>{if(typeof e!=="string")return e;const t=I[e];if(t)return t;const r=Object.keys(I).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${r}`)}))}t.coreKnownTags=C;t.getTags=getTags},56083:(e,t,r)=>{var n=r(63301);var s=r(83069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer==="function"){return Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const r=new Uint8Array(t.length);for(let e=0;e{var n=r(63301);function boolStringify({value:e,source:t},r){const n=e?s:o;if(t&&n.test.test(t))return t;return e?r.options.trueStr:r.options.falseStr}const s={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const o={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=o;t.trueTag=s},35782:(e,t,r)=>{var n=r(63301);var s=r(28689);const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():s.stringifyNumber(e)}};const a={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:s.stringifyNumber};t.float=a;t.floatExp=i;t.floatNaN=o},10873:(e,t,r)=>{var n=r(28689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,r,{intAsBigInt:n}){const s=e[0];if(s==="-"||s==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return s==="-"?BigInt(-1)*t:t}const o=parseInt(e,r);return s==="-"?-1*o:o}function intStringify(e,t,r){const{value:s}=e;if(intIdentify(s)){const e=s.toString(t);return s<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}const s={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>intResolve(e,2,2,r),stringify:e=>intStringify(e,2,"0b")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>intResolve(e,1,8,r),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>intResolve(e,0,10,r),stringify:n.stringifyNumber};const a={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>intResolve(e,2,16,r),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=s;t.intHex=a;t.intOct=o},50303:(e,t,r)=>{var n=r(41127);var s=r(74043);var o=r(84454);var i=r(92223);var a=r(18385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=o.YAMLMap.prototype.add.bind(this);this.delete=o.YAMLMap.prototype.delete.bind(this);this.get=o.YAMLMap.prototype.get.bind(this);this.has=o.YAMLMap.prototype.has.bind(this);this.set=o.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const r=new Map;if(t?.onCreate)t.onCreate(r);for(const e of this.items){let o,i;if(n.isPair(e)){o=s.toJS(e.key,"",t);i=s.toJS(e.value,o,t)}else{o=s.toJS(e,"",t)}if(r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,i)}return r}static from(e,t,r){const n=a.createPairs(e,t,r);const s=new this;s.items=n.items;return s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const c={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=a.resolvePairs(e,t);const s=[];for(const{key:e}of r.items){if(n.isScalar(e)){if(s.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,r)},createNode:(e,t,r)=>YAMLOMap.from(e,t,r)};t.YAMLOMap=YAMLOMap;t.omap=c},18385:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(63301);var i=r(92223);function resolvePairs(e,t){if(n.isSeq(e)){for(let r=0;r1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new s.Pair(new o.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[r]=n.isPair(i)?i:new s.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,r){const{replacer:n}=r;const o=new i.YAMLSeq(e);o.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(a++),e);let i,c;if(Array.isArray(e)){if(e.length===2){i=e[0];c=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];c=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}o.items.push(s.createPair(i,c,r))}return o}const a={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=a;t.resolvePairs=resolvePairs},35913:(e,t,r)=>{var n=r(47451);var s=r(73632);var o=r(1706);var i=r(66464);var a=r(56083);var c=r(88398);var u=r(35782);var A=r(10873);var l=r(50303);var d=r(18385);var p=r(81528);var g=r(46752);const h=[n.map,o.seq,i.string,s.nullTag,c.trueTag,c.falseTag,A.intBin,A.intOct,A.int,A.intHex,u.floatNaN,u.floatExp,u.float,a.binary,l.omap,d.pairs,p.set,g.intTime,g.floatTime,g.timestamp];t.schema=h},81528:(e,t,r)=>{var n=r(41127);var s=r(57165);var o=r(84454);class YAMLSet extends o.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new s.Pair(e.key,null);else t=new s.Pair(e,null);const r=o.findPair(this.items,t.key);if(!r)this.items.push(t)}get(e,t){const r=o.findPair(this.items,e);return!t&&n.isPair(r)?n.isScalar(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const r=o.findPair(this.items,e);if(r&&!t){this.items.splice(this.items.indexOf(r),1)}else if(!r&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,r);else throw new Error("Set items must all have null values")}static from(e,t,r){const{replacer:n}=r;const o=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);o.items.push(s.createPair(e,null,r))}return o}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>YAMLSet.from(e,t,r),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},46752:(e,t,r)=>{var n=r(28689);function parseSexagesimal(e,t){const r=e[0];const n=r==="-"||r==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const s=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return r==="-"?num(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let r="";if(t<0){r="-";t*=num(-1)}const s=num(60);const o=[t%s];if(t<60){o.unshift(0)}else{t=(t-o[0])/s;o.unshift(t%s);if(t>=60){t=(t-o[0])/s;o.unshift(t)}}return r+o.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const s={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>parseSexagesimal(e,r),stringify:stringifySexagesimal};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,o,a,c]=t.map(Number);const u=t[7]?Number((t[7]+"00").substr(1,3)):0;let A=Date.UTC(r,n-1,s,o||0,a||0,c||0,u);const l=t[8];if(l&&l!=="Z"){let e=parseSexagesimal(l,false);if(Math.abs(e)<30)e*=60;A-=6e4*e}return new Date(A)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};t.floatTime=o;t.intTime=s;t.timestamp=i},34475:(e,t)=>{const r="flow";const n="block";const s="quoted";function foldFlowLines(e,t,r="flow",{indentAtStart:o,lineWidth:i=80,minContentWidth:a=20,onFold:c,onOverflow:u}={}){if(!i||i<0)return e;const A=Math.max(1+a,1+i-t.length);if(e.length<=A)return e;const l=[];const d={};let p=i-t.length;if(typeof o==="number"){if(o>i-Math.max(2,a))l.push(0);else p=i-o}let g=undefined;let h=undefined;let m=false;let E=-1;let y=-1;let I=-1;if(r===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)p=E+A}for(let o;o=e[E+=1];){if(r===s&&o==="\\"){y=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}I=E}if(o==="\n"){if(r===n)E=consumeMoreIndentedLines(e,E,t.length);p=E+t.length+A;g=undefined}else{if(o===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=p){if(g){l.push(g);p=g+A;g=undefined}else if(r===s){while(h===" "||h==="\t"){h=o;o=e[E+=1];m=true}const t=E>I+1?E-2:y-1;if(d[t])return e;l.push(t);d[t]=true;p=t+A;g=undefined}else{m=true}}}h=o}if(m&&u)u();if(l.length===0)return e;if(c)c();let C=e.slice(0,l[0]);for(let n=0;n{var n=r(71596);var s=r(41127);var o=r(59799);var i=r(83069);function createStringifyContext(e,t){const r=Object.assign({blockQuote:true,commentString:o.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent==="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function getTagObject(e,t){if(t.tag){const r=e.filter((e=>e.tag===t.tag));if(r.length>0)return r.find((e=>e.format===t.format))??r[0]}let r=undefined;let n;if(s.isScalar(t)){n=t.value;const s=e.filter((e=>e.identify?.(n)));r=s.find((e=>e.format===t.format))??s.find((e=>!e.format))}else{n=t;r=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!r){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return r}function stringifyProps(e,t,{anchors:r,doc:o}){if(!o.directives)return"";const i=[];const a=(s.isScalar(e)||s.isCollection(e))&&e.anchor;if(a&&n.anchorIsValid(a)){r.add(a);i.push(`&${a}`)}const c=e.tag?e.tag:t.default?null:t.tag;if(c)i.push(o.directives.tagString(c));return i.join(" ")}function stringify(e,t,r,n){if(s.isPair(e))return e.toString(t,r,n);if(s.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let o=undefined;const a=s.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>o=e});if(!o)o=getTagObject(t.doc.schema.tags,a);const c=stringifyProps(a,o,t);if(c.length>0)t.indentAtStart=(t.indentAtStart??0)+c.length+1;const u=typeof o.stringify==="function"?o.stringify(a,t,r,n):s.isScalar(a)?i.stringifyString(a,t,r,n):a.toString(t,r,n);if(!c)return u;return s.isScalar(a)||u[0]==="{"||u[0]==="["?`${c} ${u}`:`${c}\n${t.indent}${u}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},61212:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyCollection(e,t,r){const n=t.inFlow??e.flow;const s=n?stringifyFlowCollection:stringifyBlockCollection;return s(e,t,r)}function stringifyBlockCollection({comment:e,items:t},r,{blockItemPrefix:i,flowChars:a,itemIndent:c,onChompKeep:u,onComment:A}){const{indent:l,options:{commentString:d}}=r;const p=Object.assign({},r,{indent:c,type:null});let g=false;const h=[];for(let e=0;eu=null),(()=>g=true));if(u)A+=o.lineComment(A,c,d(u));if(g&&u)g=false;h.push(i+A)}let m;if(h.length===0){m=a.start+a.end}else{m=h[0];for(let e=1;ec=null));if(rp||u.includes("\n")))d=true;g.push(u);p=g.length}const{start:h,end:m}=r;if(g.length===0){return h+m}else{if(!d){const e=g.reduce(((e,t)=>e+t.length+2),2);d=t.options.lineWidth>0&&e>t.options.lineWidth}if(d){let e=h;for(const t of g)e+=t?`\n${c}${a}${t}`:"\n";return`${e}\n${a}${m}`}else{return`${h}${u}${g.join(" ")}${u}${m}`}}}function addCommentBefore({indent:e,options:{commentString:t}},r,n,s){if(n&&s)n=n.replace(/^\n+/,"");if(n){const s=o.indentComment(t(n),e);r.push(s.trimStart())}}t.stringifyCollection=stringifyCollection},59799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,r)=>e.endsWith("\n")?indentComment(r,t):r.includes("\n")?"\n"+indentComment(r,t):(e.endsWith(" ")?"":" ")+r;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,r)=>{var n=r(41127);var s=r(2148);var o=r(59799);function stringifyDocument(e,t){const r=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){r.push(t);i=true}else if(e.directives.docStart)i=true}if(i)r.push("---");const a=s.createStringifyContext(e,t);const{commentString:c}=a.options;if(e.commentBefore){if(r.length!==1)r.unshift("");const t=c(e.commentBefore);r.unshift(o.indentComment(t,""))}let u=false;let A=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&i)r.push("");if(e.contents.commentBefore){const t=c(e.contents.commentBefore);r.push(o.indentComment(t,""))}a.forceBlockIndent=!!e.comment;A=e.contents.comment}const t=A?undefined:()=>u=true;let l=s.stringify(e.contents,a,(()=>A=null),t);if(A)l+=o.lineComment(l,"",c(A));if((l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"){r[r.length-1]=`--- ${l}`}else r.push(l)}else{r.push(s.stringify(e.contents,a))}if(e.directives?.docEnd){if(e.comment){const t=c(e.comment);if(t.includes("\n")){r.push("...");r.push(o.indentComment(t,""))}else{r.push(`... ${t}`)}}else{r.push("...")}}else{let t=e.comment;if(t&&u)t=t.replace(/^\n+/,"");if(t){if((!u||A)&&r[r.length-1]!=="")r.push("");r.push(o.indentComment(c(t),""))}}return r.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},28689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n==="bigint")return String(n);const s=typeof n==="number"?n:Number(n);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let o=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let e=o.indexOf(".");if(e<0){e=o.length;o+="."}let r=t-(o.length-e-1);while(r-- >0)o+="0"}return o}t.stringifyNumber=stringifyNumber},59748:(e,t,r)=>{var n=r(41127);var s=r(63301);var o=r(2148);var i=r(59799);function stringifyPair({key:e,value:t},r,a,c){const{allNullValues:u,doc:A,indent:l,indentStep:d,options:{commentString:p,indentSeq:g,simpleKeys:h}}=r;let m=n.isNode(e)&&e.comment||null;if(h){if(m){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||m&&t==null&&!r.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===s.Scalar.BLOCK_FOLDED||e.type===s.Scalar.BLOCK_LITERAL:typeof e==="object"));r=Object.assign({},r,{allNullValues:false,implicitKey:!E&&(h||!u),indent:l+d});let y=false;let I=false;let C=o.stringify(e,r,(()=>y=true),(()=>I=true));if(!E&&!r.inFlow&&C.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(r.inFlow){if(u||t==null){if(y&&a)a();return C===""?"?":E?`? ${C}`:C}}else if(u&&!h||t==null&&E){C=`? ${C}`;if(m&&!y){C+=i.lineComment(C,r.indent,p(m))}else if(I&&c)c();return C}if(y)m=null;if(E){if(m)C+=i.lineComment(C,r.indent,p(m));C=`? ${C}\n${l}:`}else{C=`${C}:`;if(m)C+=i.lineComment(C,r.indent,p(m))}let b,B,Q;if(n.isNode(t)){b=!!t.spaceBefore;B=t.commentBefore;Q=t.comment}else{b=false;B=null;Q=null;if(t&&typeof t==="object")t=A.createNode(t)}r.implicitKey=false;if(!E&&!m&&n.isScalar(t))r.indentAtStart=C.length+1;I=false;if(!g&&d.length>=2&&!r.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){r.indent=r.indent.substring(2)}let T=false;const v=o.stringify(t,r,(()=>T=true),(()=>I=true));let w=" ";if(m||b||B){w=b?"\n":"";if(B){const e=p(B);w+=`\n${i.indentComment(e,r.indent)}`}if(v===""&&!r.inFlow){if(w==="\n")w="\n\n"}else{w+=`\n${r.indent}`}}else if(!E&&n.isCollection(t)){const e=v[0];const n=v.indexOf("\n");const s=n!==-1;const o=r.inFlow??t.flow??t.items.length===0;if(s||!o){let t=false;if(s&&(e==="&"||e==="!")){let r=v.indexOf(" ");if(e==="&"&&r!==-1&&r{var n=r(63301);var s=r(34475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,r){if(!t||t<0)return false;const n=t-r;const s=e.length;if(s<=n)return false;for(let t=0,r=0;tn)return true;r=t+1;if(s-r<=n)return false}}return true}function doubleQuotedString(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t;const o=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let a="";let c=0;for(let e=0,t=r[e];t;t=r[++e]){if(t===" "&&r[e+1]==="\\"&&r[e+2]==="n"){a+=r.slice(c,e)+"\\ ";e+=1;c=e;t="\\"}if(t==="\\")switch(r[e+1]){case"u":{a+=r.slice(c,e);const t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(t.substr(0,2)==="00")a+="\\x"+t.substr(2);else a+=r.substr(e,6)}e+=5;c=e+1}break;case"n":if(n||r[e+2]==='"'||r.length\n";let g;let h;for(h=r.length;h>0;--h){const e=r[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let m=r.substring(h);const E=m.indexOf("\n");if(E===-1){g="-"}else if(r===m||E!==m.length-1){g="+";if(c)c()}else{g=""}if(m){r=r.slice(0,-m.length);if(m[m.length-1]==="\n")m=m.slice(0,-1);m=m.replace(o,`$&${d}`)}let y=false;let I;let C=-1;for(I=0;I")+(y?B:"")+g;if(e){Q+=" "+A(e.replace(/ ?[\r\n]+/g," "));if(a)a()}if(p){r=r.replace(/\n+/g,`$&${d}`);return`${Q}\n${d}${b}${r}${m}`}r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const T=s.foldFlowLines(`${b}${r}${m}`,d,s.FOLD_BLOCK,getFoldOptions(i,true));return`${Q}\n${d}${T}`}function plainString(e,t,r,o){const{type:i,value:a}=e;const{actualString:c,implicitKey:u,indent:A,indentStep:l,inFlow:d}=t;if(u&&a.includes("\n")||d&&/[[\]{},]/.test(a)){return quotedString(a,t)}if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)){return u||d||!a.includes("\n")?quotedString(a,t):blockString(e,t,r,o)}if(!u&&!d&&i!==n.Scalar.PLAIN&&a.includes("\n")){return blockString(e,t,r,o)}if(containsDocumentMarker(a)){if(A===""){t.forceBlockIndent=true;return blockString(e,t,r,o)}else if(u&&A===l){return quotedString(a,t)}}const p=a.replace(/\n+/g,`$&\n${A}`);if(c){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(p);const{compat:e,tags:r}=t.doc.schema;if(r.some(test)||e?.some(test))return quotedString(a,t)}return u?p:s.foldFlowLines(p,A,s.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,r,s){const{implicitKey:o,inFlow:i}=t;const a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:c}=e;if(c!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))c=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return o||i?quotedString(a.value,t):blockString(a,t,r,s);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(a.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(a.value,t);case n.Scalar.PLAIN:return plainString(a,t,r,s);default:return null}};let u=_stringify(c);if(u===null){const{defaultKeyType:e,defaultStringType:r}=t.options;const n=o&&e||r;u=_stringify(n);if(u===null)throw new Error(`Unsupported default string type ${n}`)}return u}t.stringifyString=stringifyString},10204:(e,t,r)=>{var n=r(41127);const s=Symbol("break visit");const o=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const r=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,r,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,r,Object.freeze([]))}visit.BREAK=s;visit.SKIP=o;visit.REMOVE=i;function visit_(e,t,r,o){const a=callVisitor(e,t,r,o);if(n.isNode(a)||n.isPair(a)){replaceNode(e,o,a);return visit_(e,a,r,o)}if(typeof a!=="symbol"){if(n.isCollection(t)){o=Object.freeze(o.concat(t));for(let e=0;e{e.exports=JSON.parse('{"name":"dotenv","version":"16.4.5","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","lint-readme":"standard-markdown","pretest":"npm run lint && npm run dts-check","test":"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3","decache":"^4.6.1","sinon":"^14.0.1","standard":"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0","tap":"^16.3.0","tar":"^6.1.11","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}')}};var r={};function __nccwpck_require__(e){var n=r[e];if(n!==undefined){return n.exports}var s=r[e]={exports:{}};var o=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete r[e]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var n={};var s={};__nccwpck_require__.r(s);__nccwpck_require__.d(s,{Any:()=>any_Any,Array:()=>array_Array,AsyncIterator:()=>async_iterator_AsyncIterator,Awaited:()=>awaited_Awaited,BigInt:()=>bigint_BigInt,Boolean:()=>boolean_Boolean,Capitalize:()=>capitalize_Capitalize,Composite:()=>composite_Composite,Const:()=>const_Const,Constructor:()=>constructor_Constructor,ConstructorParameters:()=>constructor_parameters_ConstructorParameters,Date:()=>date_Date,Deref:()=>deref_deref_Deref,Enum:()=>enum_Enum,Exclude:()=>exclude_Exclude,Extends:()=>extends_Extends,Extract:()=>extract_Extract,Function:()=>function_Function,Index:()=>indexed_Index,InstanceType:()=>instance_type_InstanceType,Integer:()=>integer_Integer,Intersect:()=>intersect_Intersect,Iterator:()=>iterator_Iterator,KeyOf:()=>keyof_KeyOf,Literal:()=>literal_Literal,Lowercase:()=>lowercase_Lowercase,Mapped:()=>mapped_Mapped,Never:()=>never_Never,Not:()=>not_Not,Null:()=>null_Null,Number:()=>number_Number,Object:()=>O,Omit:()=>omit_Omit,Optional:()=>optional_Optional,Parameters:()=>parameters_Parameters,Partial:()=>partial_Partial,Pick:()=>pick_Pick,Promise:()=>promise_Promise,Readonly:()=>readonly_Readonly,ReadonlyOptional:()=>readonly_optional_ReadonlyOptional,Record:()=>record_Record,Recursive:()=>recursive_Recursive,Ref:()=>ref_Ref,RegExp:()=>regexp_RegExp,Required:()=>required_Required,Rest:()=>rest_Rest,ReturnType:()=>return_type_ReturnType,Strict:()=>strict_Strict,String:()=>string_String,Symbol:()=>symbol_Symbol,TemplateLiteral:()=>template_literal_TemplateLiteral,Transform:()=>transform_Transform,Tuple:()=>tuple_Tuple,Uint8Array:()=>uint8array_Uint8Array,Uncapitalize:()=>uncapitalize_Uncapitalize,Undefined:()=>undefined_Undefined,Union:()=>union_Union,Unknown:()=>unknown_Unknown,Unsafe:()=>unsafe_Unsafe,Uppercase:()=>uppercase_Uppercase,Void:()=>void_Void});var o={reset:"",bright:"",dim:"",underscore:"",blink:"",reverse:"",hidden:"",fgBlack:"",fgRed:"",fgGreen:"",fgYellow:"",fgBlue:"",fgMagenta:"",fgCyan:"",fgWhite:"",bgBlack:"",bgRed:"",bgGreen:"",bgYellow:"",bgBlue:"",bgMagenta:"",bgCyan:"",bgWhite:""};var i={FATAL:"fatal",ERROR:"error",INFO:"info",VERBOSE:"verbose",DEBUG:"debug"};var a=class{constructor(){this.ok=this.ok.bind(this);this.info=this.info.bind(this);this.error=this.error.bind(this);this.fatal=this.fatal.bind(this);this.debug=this.debug.bind(this);this.verbose=this.verbose.bind(this)}fatal(e,t){this._logWithStack(i.FATAL,e,t)}error(e,t){this._logWithStack(i.ERROR,e,t)}ok(e,t){this._logWithStack("ok",e,t)}info(e,t){this._logWithStack(i.INFO,e,t)}debug(e,t){this._logWithStack(i.DEBUG,e,t)}verbose(e,t){this._logWithStack(i.VERBOSE,e,t)}_logWithStack(e,t,r){this._log(e,t);if(typeof r==="string"){this._log(e,r);return}if(r){const t=r;let n=t?.error?.stack||t?.stack;if(!n){const e=(new Error).stack?.split("\n");if(e){e.splice(0,4);n=e.filter((e=>e.includes(".ts:"))).join("\n")}}const s={...t};delete s.message;delete s.name;delete s.stack;if(!this._isEmpty(s)){this._log(e,s)}if(typeof n=="string"){const t=this._formatStackTrace(n,1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else if(n){const t=this._formatStackTrace(n.join("\n"),1);const r=this._colorizeText(t,o.dim);this._log(e,r)}else{throw new Error("Stack is null")}}}_colorizeText(e,t){if(!t){throw new Error(`Invalid color: ${t}`)}return t.concat(e).concat(o.reset)}_formatStackTrace(e,t=0,r=""){const n=e.split("\n");for(let e=0;e`${r}${e.replace(/\s*at\s*/," ↳ ")}`)).join("\n")}_isEmpty(e){return!Reflect.ownKeys(e).some((t=>typeof e[String(t)]!=="function"))}_log(e,t){const r={fatal:"×",ok:"✓",error:"⚠",info:"›",debug:"››",verbose:"💬"};const n=r[e];const s=typeof t==="string"?t:JSON.stringify(t,null,2);const i=s.split("\n");const a=i.map(((e,t)=>{const r=t===0?`\t${n}`:`\t${" ".repeat(n.length)}`;return`${r} ${e}`})).join("\n");const c=a;const u={fatal:["error",o.fgRed],ok:["log",o.fgGreen],error:["warn",o.fgYellow],info:["info",o.dim],debug:["debug",o.fgMagenta],verbose:["debug",o.dim]};const A=console[u[e][0]];if(typeof A==="function"&&c.length>12){A(this._colorizeText(c,u[e][1]))}else if(c.length<=12){return}else{throw new Error(c)}}};var c=class{logMessage;metadata;constructor(e,t){this.logMessage=e;this.metadata=t}};var u=class _Logs{_maxLevel=-1;static console;_log({level:e,consoleLog:t,logMessage:r,metadata:n,type:s}){if(this._getNumericLevel(e)<=this._maxLevel){t(r,n)}return new c({raw:r,diff:this._diffColorCommentMessage(s,r),type:s,level:e},n)}_addDiagnosticInformation(e){if(!e){e={}}else if(typeof e!=="object"){e={message:e}}const t=(new Error).stack?.split("\n")||[];if(t.length>3){const r=t[3];const n=r.match(/at (\S+)/);if(n){e.caller=n[1]}}return e}ok(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.ok,logMessage:e,metadata:t,type:"ok"})}info(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.INFO,consoleLog:_Logs.console.info,logMessage:e,metadata:t,type:"info"})}error(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.ERROR,consoleLog:_Logs.console.error,logMessage:e,metadata:t,type:"error"})}debug(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.DEBUG,consoleLog:_Logs.console.debug,logMessage:e,metadata:t,type:"debug"})}fatal(e,t){if(!t){t=_Logs.convertErrorsIntoObjects(new Error(e));const r=t.stack;r.splice(1,1);t.stack=r}if(t instanceof Error){t=_Logs.convertErrorsIntoObjects(t);const e=t.stack;e.splice(1,1);t.stack=e}t=this._addDiagnosticInformation(t);return this._log({level:i.FATAL,consoleLog:_Logs.console.fatal,logMessage:e,metadata:t,type:"fatal"})}verbose(e,t){t=this._addDiagnosticInformation(t);return this._log({level:i.VERBOSE,consoleLog:_Logs.console.verbose,logMessage:e,metadata:t,type:"verbose"})}constructor(e){this._maxLevel=this._getNumericLevel(e);_Logs.console=new a}_diffColorCommentMessage(e,t){const r={fatal:"-",ok:"+",error:"!",info:"#",debug:"@@@@"};const n=r[e];if(n){t=t.trim().split("\n").map((e=>`${n} ${e}`)).join("\n")}else if(e==="debug"){t=t.split("\n").map((e=>`@@ ${e} @@`)).join("\n")}else{t=t.split("\n").map((e=>`# ${e}`)).join("\n")}const s="```diff";const o="```";return[s,t,o].join("\n")}_getNumericLevel(e){switch(e){case i.FATAL:return 0;case i.ERROR:return 1;case i.INFO:return 2;case i.VERBOSE:return 4;case i.DEBUG:return 5;default:return-1}}static convertErrorsIntoObjects(e){if(e instanceof Error){return{message:e.message,name:e.name,stack:e.stack?e.stack.split("\n"):null}}else if(typeof e==="object"&&e!==null){const t=Object.keys(e);t.forEach((t=>{e[t]=this.convertErrorsIntoObjects(e[t])}))}return e}};var A=/\x1b\[\d+m|\s/g;function cleanLogs(e){const t=e.mock.calls.map((e=>e.map((e=>e?.toString())).join(" ")));return t.flat().map((e=>cleanLogString(e)))}function cleanLogString(e){return e.replaceAll(A,"").replaceAll(/\n/g,"").replaceAll(/\r/g,"").replaceAll(/\t/g,"").trim()}function cleanSpyLogs(e){return cleanLogs(e)}function IsAsyncIterator(e){return IsObject(e)&&Symbol.asyncIterator in e}function IsIterator(e){return IsObject(e)&&Symbol.iterator in e}function IsStandardObject(e){return IsObject(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function IsInstanceObject(e){return IsObject(e)&&!IsArray(e)&&IsFunction(e.constructor)&&e.constructor.name!=="Object"}function IsPromise(e){return e instanceof Promise}function IsDate(e){return e instanceof Date&&Number.isFinite(e.getTime())}function IsMap(e){return e instanceof globalThis.Map}function IsSet(e){return e instanceof globalThis.Set}function IsRegExp(e){return e instanceof globalThis.RegExp}function IsTypedArray(e){return ArrayBuffer.isView(e)}function IsInt8Array(e){return e instanceof globalThis.Int8Array}function IsUint8Array(e){return e instanceof globalThis.Uint8Array}function IsUint8ClampedArray(e){return e instanceof globalThis.Uint8ClampedArray}function IsInt16Array(e){return e instanceof globalThis.Int16Array}function IsUint16Array(e){return e instanceof globalThis.Uint16Array}function IsInt32Array(e){return e instanceof globalThis.Int32Array}function IsUint32Array(e){return e instanceof globalThis.Uint32Array}function IsFloat32Array(e){return e instanceof globalThis.Float32Array}function IsFloat64Array(e){return e instanceof globalThis.Float64Array}function IsBigInt64Array(e){return e instanceof globalThis.BigInt64Array}function IsBigUint64Array(e){return e instanceof globalThis.BigUint64Array}function HasPropertyKey(e,t){return t in e}function IsObject(e){return e!==null&&typeof e==="object"}function IsArray(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function IsUndefined(e){return e===undefined}function IsNull(e){return e===null}function IsBoolean(e){return typeof e==="boolean"}function IsNumber(e){return typeof e==="number"}function IsInteger(e){return Number.isInteger(e)}function IsBigInt(e){return typeof e==="bigint"}function IsString(e){return typeof e==="string"}function IsFunction(e){return typeof e==="function"}function IsSymbol(e){return typeof e==="symbol"}function IsValueType(e){return IsBigInt(e)||IsBoolean(e)||IsNull(e)||IsNumber(e)||IsString(e)||IsSymbol(e)||IsUndefined(e)}var l;(function(e){e.ExactOptionalPropertyTypes=false;e.AllowArrayObject=false;e.AllowNaN=false;e.AllowNullVoid=false;function IsExactOptionalProperty(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined}e.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(t){const r=IsObject(t);return e.AllowArrayObject?r:r&&!IsArray(t)}e.IsObjectLike=IsObjectLike;function IsRecordLike(e){return IsObjectLike(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)}e.IsRecordLike=IsRecordLike;function IsNumberLike(t){return e.AllowNaN?IsNumber(t):Number.isFinite(t)}e.IsNumberLike=IsNumberLike;function IsVoidLike(t){const r=IsUndefined(t);return e.AllowNullVoid?r||t===null:r}e.IsVoidLike=IsVoidLike})(l||(l={}));const d=new Map;function Entries(){return new Map(d)}function Clear(){return d.clear()}function Delete(e){return d.delete(e)}function Has(e){return d.has(e)}function format_Set(e,t){d.set(e,t)}function Get(e){return d.get(e)}const p=new Map;function type_Entries(){return new Map(p)}function type_Clear(){return p.clear()}function type_Delete(e){return p.delete(e)}function type_Has(e){return p.has(e)}function type_Set(e,t){p.set(e,t)}function type_Get(e){return p.get(e)}const g=Symbol.for("TypeBox.Transform");const h=Symbol.for("TypeBox.Readonly");const m=Symbol.for("TypeBox.Optional");const E=Symbol.for("TypeBox.Hint");const y=Symbol.for("TypeBox.Kind");function unsafe_Unsafe(e={}){return{...e,[y]:e[y]??"Unsafe"}}class TypeBoxError extends Error{constructor(e){super(e)}}class TypeSystemDuplicateTypeKind extends TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}class TypeSystemDuplicateFormat extends TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var I;(function(e){function Type(e,t){if(type_Has(e))throw new TypeSystemDuplicateTypeKind(e);type_Set(e,t);return(t={})=>unsafe_Unsafe({...t,[y]:e})}e.Type=Type;function Format(e,t){if(Has(e))throw new TypeSystemDuplicateFormat(e);format_Set(e,t);return e}e.Format=Format})(I||(I={}));function MappedKey(e){return{[Kind]:"MappedKey",keys:e}}function MappedResult(e){return{[y]:"MappedResult",properties:e}}function value_IsAsyncIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.asyncIterator in e}function value_IsArray(e){return Array.isArray(e)}function value_IsBigInt(e){return typeof e==="bigint"}function value_IsBoolean(e){return typeof e==="boolean"}function value_IsDate(e){return e instanceof globalThis.Date}function value_IsFunction(e){return typeof e==="function"}function value_IsIterator(e){return value_IsObject(e)&&!value_IsArray(e)&&!value_IsUint8Array(e)&&Symbol.iterator in e}function value_IsNull(e){return e===null}function value_IsNumber(e){return typeof e==="number"}function value_IsObject(e){return typeof e==="object"&&e!==null}function value_IsRegExp(e){return e instanceof globalThis.RegExp}function value_IsString(e){return typeof e==="string"}function value_IsSymbol(e){return typeof e==="symbol"}function value_IsUint8Array(e){return e instanceof globalThis.Uint8Array}function value_IsUndefined(e){return e===undefined}function ArrayType(e){return e.map((e=>Visit(e)))}function DateType(e){return new Date(e.getTime())}function Uint8ArrayType(e){return new Uint8Array(e)}function RegExpType(e){return new RegExp(e.source,e.flags)}function ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=Visit(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=Visit(e[r])}return t}function Visit(e){return value_IsArray(e)?ArrayType(e):value_IsDate(e)?DateType(e):value_IsUint8Array(e)?Uint8ArrayType(e):value_IsRegExp(e)?RegExpType(e):value_IsObject(e)?ObjectType(e):e}function Clone(e){return Visit(e)}function CloneRest(e){return e.map((e=>CloneType(e)))}function CloneType(e,t={}){return{...Clone(e),...t}}function DiscardKey(e,t){const{[t]:r,...n}=e;return n}function Discard(e,t){return t.reduce(((e,t)=>DiscardKey(e,t)),e)}function array_Array(e,t={}){return{...t,[y]:"Array",type:"array",items:CloneType(e)}}function async_iterator_AsyncIterator(e,t={}){return{...t,[y]:"AsyncIterator",type:"AsyncIterator",items:CloneType(e)}}function constructor_Constructor(e,t,r){return{...r,[y]:"Constructor",type:"Constructor",parameters:CloneRest(e),returns:CloneType(t)}}function function_Function(e,t,r){return{...r,[y]:"Function",type:"Function",parameters:CloneRest(e),returns:CloneType(t)}}function never_Never(e={}){return{...e,[y]:"Never",not:{}}}function IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function IsAny(e){return IsKindOf(e,"Any")}function kind_IsArray(e){return IsKindOf(e,"Array")}function kind_IsAsyncIterator(e){return IsKindOf(e,"AsyncIterator")}function kind_IsBigInt(e){return IsKindOf(e,"BigInt")}function kind_IsBoolean(e){return IsKindOf(e,"Boolean")}function IsConstructor(e){return IsKindOf(e,"Constructor")}function kind_IsDate(e){return IsKindOf(e,"Date")}function kind_IsFunction(e){return IsKindOf(e,"Function")}function kind_IsInteger(e){return IsKindOf(e,"Integer")}function IsProperties(e){return ValueGuard.IsObject(e)}function IsIntersect(e){return IsKindOf(e,"Intersect")}function kind_IsIterator(e){return IsKindOf(e,"Iterator")}function IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function IsLiteralString(e){return IsLiteral(e)&&ValueGuard.IsString(e.const)}function IsLiteralNumber(e){return IsLiteral(e)&&ValueGuard.IsNumber(e.const)}function IsLiteralBoolean(e){return IsLiteral(e)&&ValueGuard.IsBoolean(e.const)}function IsLiteral(e){return IsKindOf(e,"Literal")}function IsMappedKey(e){return IsKindOf(e,"MappedKey")}function IsMappedResult(e){return IsKindOf(e,"MappedResult")}function IsNever(e){return IsKindOf(e,"Never")}function IsNot(e){return IsKindOf(e,"Not")}function kind_IsNull(e){return IsKindOf(e,"Null")}function kind_IsNumber(e){return IsKindOf(e,"Number")}function kind_IsObject(e){return IsKindOf(e,"Object")}function kind_IsPromise(e){return IsKindOf(e,"Promise")}function IsRecord(e){return IsKindOf(e,"Record")}function IsRecursive(e){return ValueGuard.IsObject(e)&&Hint in e&&e[Hint]==="Recursive"}function IsRef(e){return IsKindOf(e,"Ref")}function kind_IsRegExp(e){return IsKindOf(e,"RegExp")}function kind_IsString(e){return IsKindOf(e,"String")}function kind_IsSymbol(e){return IsKindOf(e,"Symbol")}function IsTemplateLiteral(e){return IsKindOf(e,"TemplateLiteral")}function IsThis(e){return IsKindOf(e,"This")}function IsTransform(e){return value_IsObject(e)&&g in e}function IsTuple(e){return IsKindOf(e,"Tuple")}function kind_IsUndefined(e){return IsKindOf(e,"Undefined")}function IsUnion(e){return IsKindOf(e,"Union")}function kind_IsUint8Array(e){return IsKindOf(e,"Uint8Array")}function IsUnknown(e){return IsKindOf(e,"Unknown")}function IsUnsafe(e){return IsKindOf(e,"Unsafe")}function IsVoid(e){return IsKindOf(e,"Void")}function IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])}function IsSchema(e){return IsAny(e)||kind_IsArray(e)||kind_IsBoolean(e)||kind_IsBigInt(e)||kind_IsAsyncIterator(e)||IsConstructor(e)||kind_IsDate(e)||kind_IsFunction(e)||kind_IsInteger(e)||IsIntersect(e)||kind_IsIterator(e)||IsLiteral(e)||IsMappedKey(e)||IsMappedResult(e)||IsNever(e)||IsNot(e)||kind_IsNull(e)||kind_IsNumber(e)||kind_IsObject(e)||kind_IsPromise(e)||IsRecord(e)||IsRef(e)||kind_IsRegExp(e)||kind_IsString(e)||kind_IsSymbol(e)||IsTemplateLiteral(e)||IsThis(e)||IsTuple(e)||kind_IsUndefined(e)||IsUnion(e)||kind_IsUint8Array(e)||IsUnknown(e)||IsUnsafe(e)||IsVoid(e)||IsKind(e)}function RemoveOptional(e){return Discard(CloneType(e),[m])}function AddOptional(e){return{...CloneType(e),[m]:"Optional"}}function OptionalWithFlag(e,t){return t===false?RemoveOptional(e):AddOptional(e)}function optional_Optional(e,t){const r=t??true;return IsMappedResult(e)?OptionalFromMappedResult(e,r):OptionalWithFlag(e,r)}function FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=optional_Optional(e[n],t);return r}function FromMappedResult(e,t){return FromProperties(e.properties,t)}function OptionalFromMappedResult(e,t){const r=FromMappedResult(e,t);return MappedResult(r)}function IntersectCreate(e,t){const r=e.every((e=>kind_IsObject(e)));const n=IsSchema(t.unevaluatedProperties)?{unevaluatedProperties:CloneType(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===false||IsSchema(t.unevaluatedProperties)||r?{...t,...n,[y]:"Intersect",type:"object",allOf:CloneRest(e)}:{...t,...n,[y]:"Intersect",allOf:CloneRest(e)}}function IsIntersectOptional(e){return e.every((e=>IsOptional(e)))}function RemoveOptionalFromType(e){return Discard(e,[m])}function RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?RemoveOptionalFromType(e):e))}function ResolveIntersect(e,t){return IsIntersectOptional(e)?optional_Optional(IntersectCreate(RemoveOptionalFromRest(e),t)):IntersectCreate(RemoveOptionalFromRest(e),t)}function IntersectEvaluated(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return ResolveIntersect(e,t)}function intersect_Intersect(e,t={}){if(e.length===0)return never_Never(t);if(e.length===1)return CloneType(e[0],t);if(e.some((e=>IsTransform(e))))throw new Error("Cannot intersect transform types");return IntersectCreate(e,t)}function UnionCreate(e,t){return{...t,[y]:"Union",anyOf:CloneRest(e)}}function IsUnionOptional(e){return e.some((e=>IsOptional(e)))}function union_evaluated_RemoveOptionalFromRest(e){return e.map((e=>IsOptional(e)?union_evaluated_RemoveOptionalFromType(e):e))}function union_evaluated_RemoveOptionalFromType(e){return Discard(e,[m])}function ResolveUnion(e,t){return IsUnionOptional(e)?optional_Optional(UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)):UnionCreate(union_evaluated_RemoveOptionalFromRest(e),t)}function UnionEvaluated(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):ResolveUnion(e,t)}function union_Union(e,t={}){return e.length===0?never_Never(t):e.length===1?CloneType(e[0],t):UnionCreate(e,t)}class TemplateLiteralParserError extends TypeBoxError{}function Unescape(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function IsOpenParen(e,t){return IsNonEscaped(e,t,"(")}function IsCloseParen(e,t){return IsNonEscaped(e,t,")")}function IsSeparator(e,t){return IsNonEscaped(e,t,"|")}function IsGroup(e){if(!(IsOpenParen(e,0)&&IsCloseParen(e,e.length-1)))return false;let t=0;for(let r=0;r0)n.push(TemplateLiteralParse(t));r=s+1}}const s=e.slice(r);if(s.length>0)n.push(TemplateLiteralParse(s));if(n.length===0)return{type:"const",const:""};if(n.length===1)return n[0];return{type:"or",expr:n}}function And(e){function Group(e,t){if(!IsOpenParen(e,t))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let r=0;for(let n=t;n0)t.push(TemplateLiteralParse(o));r=s-1}}return t.length===0?{type:"const",const:""}:t.length===1?t[0]:{type:"and",expr:t}}function TemplateLiteralParse(e){return IsGroup(e)?TemplateLiteralParse(InGroup(e)):IsPrecedenceOr(e)?Or(e):IsPrecedenceAnd(e)?And(e):{type:"const",const:Unescape(e)}}function TemplateLiteralParseExact(e){return TemplateLiteralParse(e.slice(1,e.length-1))}class TemplateLiteralFiniteError extends TypeBoxError{}function IsNumberExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function IsStringExpression(e){return e.type==="const"&&e.const===".*"}function IsTemplateLiteralExpressionFinite(e){return IsNumberExpression(e)||IsStringExpression(e)?false:IsBooleanExpression(e)?true:e.type==="and"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="or"?e.expr.every((e=>IsTemplateLiteralExpressionFinite(e))):e.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}function IsTemplateLiteralFinite(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)}class TemplateLiteralGenerateError extends TypeBoxError{}function*GenerateReduce(e){if(e.length===1)return yield*e[0];for(const t of e[0]){for(const r of GenerateReduce(e.slice(1))){yield`${t}${r}`}}}function*GenerateAnd(e){return yield*GenerateReduce(e.expr.map((e=>[...TemplateLiteralExpressionGenerate(e)])))}function*GenerateOr(e){for(const t of e.expr)yield*TemplateLiteralExpressionGenerate(t)}function*GenerateConst(e){return yield e.const}function*TemplateLiteralExpressionGenerate(e){return e.type==="and"?yield*GenerateAnd(e):e.type==="or"?yield*GenerateOr(e):e.type==="const"?yield*GenerateConst(e):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}function TemplateLiteralGenerate(e){const t=TemplateLiteralParseExact(e.pattern);return IsTemplateLiteralExpressionFinite(t)?[...TemplateLiteralExpressionGenerate(t)]:[]}function literal_Literal(e,t={}){return{...t,[y]:"Literal",const:e,type:typeof e}}function boolean_Boolean(e={}){return{...e,[y]:"Boolean",type:"boolean"}}function bigint_BigInt(e={}){return{...e,[y]:"BigInt",type:"bigint"}}function number_Number(e={}){return{...e,[y]:"Number",type:"number"}}function string_String(e={}){return{...e,[y]:"String",type:"string"}}function*FromUnion(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield boolean_Boolean():t==="number"?yield number_Number():t==="bigint"?yield bigint_BigInt():t==="string"?yield string_String():yield(()=>{const e=t.split("|").map((e=>literal_Literal(e.trim())));return e.length===0?never_Never():e.length===1?e[0]:UnionEvaluated(e)})()}function*FromTerminal(e){if(e[1]!=="{"){const t=literal_Literal("$");const r=FromSyntax(e.slice(1));return yield*[t,...r]}for(let t=2;tpattern_Visit(e,t))).join("|")})`:kind_IsNumber(e)?`${t}${b}`:kind_IsInteger(e)?`${t}${b}`:kind_IsBigInt(e)?`${t}${b}`:kind_IsString(e)?`${t}${B}`:IsLiteral(e)?`${t}${Escape(e.const.toString())}`:kind_IsBoolean(e)?`${t}${C}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${e[y]}'`)})()}function TemplateLiteralPattern(e){return`^${e.map((e=>pattern_Visit(e,""))).join("")}$`}function TemplateLiteralToUnion(e){const t=TemplateLiteralGenerate(e);const r=t.map((e=>literal_Literal(e)));return UnionEvaluated(r)}function template_literal_TemplateLiteral(e,t={}){const r=value_IsString(e)?TemplateLiteralPattern(TemplateLiteralSyntax(e)):TemplateLiteralPattern(e);return{...t,[y]:"TemplateLiteral",type:"string",pattern:r}}function FromTemplateLiteral(e){const t=TemplateLiteralGenerate(e);return t.map((e=>e.toString()))}function indexed_property_keys_FromUnion(e){const t=[];for(const r of e)t.push(...IndexPropertyKeys(r));return t}function FromLiteral(e){return[e.toString()]}function IndexPropertyKeys(e){return[...new Set(IsTemplateLiteral(e)?FromTemplateLiteral(e):IsUnion(e)?indexed_property_keys_FromUnion(e.anyOf):IsLiteral(e)?FromLiteral(e.const):kind_IsNumber(e)?["[number]"]:kind_IsInteger(e)?["[number]"]:[])]}function indexed_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of Object.getOwnPropertyNames(t)){n[s]=indexed_Index(e,IndexPropertyKeys(t[s]),r)}return n}function indexed_from_mapped_result_FromMappedResult(e,t,r){return indexed_from_mapped_result_FromProperties(e,t.properties,r)}function IndexFromMappedResult(e,t,r){const n=indexed_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function FromRest(e,t){return e.map((e=>IndexFromPropertyKey(e,t)))}function FromIntersectRest(e){return e.filter((e=>!IsNever(e)))}function FromIntersect(e,t){return IntersectEvaluated(FromIntersectRest(FromRest(e,t)))}function FromUnionRest(e){return e.some((e=>IsNever(e)))?[]:e}function indexed_FromUnion(e,t){return UnionEvaluated(FromUnionRest(FromRest(e,t)))}function FromTuple(e,t){return t in e?e[t]:t==="[number]"?UnionEvaluated(e):never_Never()}function FromArray(e,t){return t==="[number]"?e:never_Never()}function FromProperty(e,t){return t in e?e[t]:never_Never()}function IndexFromPropertyKey(e,t){return IsIntersect(e)?FromIntersect(e.allOf,t):IsUnion(e)?indexed_FromUnion(e.anyOf,t):IsTuple(e)?FromTuple(e.items??[],t):kind_IsArray(e)?FromArray(e.items,t):kind_IsObject(e)?FromProperty(e.properties,t):never_Never()}function IndexFromPropertyKeys(e,t){return t.map((t=>IndexFromPropertyKey(e,t)))}function FromSchema(e,t){return UnionEvaluated(IndexFromPropertyKeys(e,t))}function indexed_Index(e,t,r={}){return IsMappedResult(t)?CloneType(IndexFromMappedResult(e,t,r)):IsMappedKey(t)?CloneType(IndexFromMappedKey(e,t,r)):IsSchema(t)?CloneType(FromSchema(e,IndexPropertyKeys(t)),r):CloneType(FromSchema(e,t),r)}function MappedIndexPropertyKey(e,t,r){return{[t]:indexed_Index(e,[t],r)}}function MappedIndexPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...MappedIndexPropertyKey(e,n,r)})),{})}function MappedIndexProperties(e,t,r){return MappedIndexPropertyKeys(e,t.keys,r)}function IndexFromMappedKey(e,t,r){const n=MappedIndexProperties(e,t,r);return MappedResult(n)}function iterator_Iterator(e,t={}){return{...t,[y]:"Iterator",type:"Iterator",items:CloneType(e)}}function _Object(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e);const n=r.filter((t=>IsOptional(e[t])));const s=r.filter((e=>!n.includes(e)));const o=IsSchema(t.additionalProperties)?{additionalProperties:CloneType(t.additionalProperties)}:{};const i={};for(const t of r)i[t]=CloneType(e[t]);return s.length>0?{...t,...o,[y]:"Object",type:"object",properties:i,required:s}:{...t,...o,[y]:"Object",type:"object",properties:i}}const O=_Object;function promise_Promise(e,t={}){return{...t,[y]:"Promise",type:"Promise",item:CloneType(e)}}function RemoveReadonly(e){return Discard(CloneType(e),[h])}function AddReadonly(e){return{...CloneType(e),[h]:"Readonly"}}function ReadonlyWithFlag(e,t){return t===false?RemoveReadonly(e):AddReadonly(e)}function readonly_Readonly(e,t){const r=t??true;return IsMappedResult(e)?ReadonlyFromMappedResult(e,r):ReadonlyWithFlag(e,r)}function readonly_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=readonly_Readonly(e[n],t);return r}function readonly_from_mapped_result_FromMappedResult(e,t){return readonly_from_mapped_result_FromProperties(e.properties,t)}function ReadonlyFromMappedResult(e,t){const r=readonly_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function tuple_Tuple(e,t={}){const[r,n,s]=[false,e.length,e.length];return e.length>0?{...t,[y]:"Tuple",type:"array",items:CloneRest(e),additionalItems:r,minItems:n,maxItems:s}:{...t,[y]:"Tuple",type:"array",minItems:n,maxItems:s}}function SetIncludes(e,t){return e.includes(t)}function SetIsSubset(e,t){return e.every((e=>SetIncludes(t,e)))}function SetDistinct(e){return[...new Set(e)]}function SetIntersect(e,t){return e.filter((e=>t.includes(e)))}function SetUnion(e,t){return[...e,...t]}function SetComplement(e,t){return e.filter((e=>!t.includes(e)))}function SetIntersectManyResolve(e,t){return e.reduce(((e,t)=>SetIntersect(e,t)),t)}function SetIntersectMany(e){return e.length===1?e[0]:e.length>1?SetIntersectManyResolve(e.slice(1),e[0]):[]}function SetUnionMany(e){const t=[];for(const r of e)t.push(...r);return t}function mapped_FromMappedResult(e,t){return e in t?FromSchemaType(e,t[e]):MappedResult(t)}function MappedKeyToKnownMappedResultProperties(e){return{[e]:literal_Literal(e)}}function MappedKeyToUnknownMappedResultProperties(e){const t={};for(const r of e)t[r]=literal_Literal(r);return t}function MappedKeyToMappedResultProperties(e,t){return SetIncludes(t,e)?MappedKeyToKnownMappedResultProperties(e):MappedKeyToUnknownMappedResultProperties(t)}function FromMappedKey(e,t){const r=MappedKeyToMappedResultProperties(e,t);return mapped_FromMappedResult(e,r)}function mapped_FromRest(e,t){return t.map((t=>FromSchemaType(e,t)))}function mapped_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=FromSchemaType(e,t[n]);return r}function FromSchemaType(e,t){return IsOptional(t)?optional_Optional(FromSchemaType(e,Discard(t,[m]))):IsReadonly(t)?readonly_Readonly(FromSchemaType(e,Discard(t,[h]))):IsMappedResult(t)?mapped_FromMappedResult(e,t.properties):IsMappedKey(t)?FromMappedKey(e,t.keys):IsConstructor(t)?constructor_Constructor(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsFunction(t)?function_Function(mapped_FromRest(e,t.parameters),FromSchemaType(e,t.returns)):kind_IsAsyncIterator(t)?async_iterator_AsyncIterator(FromSchemaType(e,t.items)):kind_IsIterator(t)?iterator_Iterator(FromSchemaType(e,t.items)):IsIntersect(t)?intersect_Intersect(mapped_FromRest(e,t.allOf)):IsUnion(t)?union_Union(mapped_FromRest(e,t.anyOf)):IsTuple(t)?tuple_Tuple(mapped_FromRest(e,t.items??[])):kind_IsObject(t)?O(mapped_FromProperties(e,t.properties)):kind_IsArray(t)?array_Array(FromSchemaType(e,t.items)):kind_IsPromise(t)?promise_Promise(FromSchemaType(e,t.item)):t}function MappedFunctionReturnType(e,t){const r={};for(const n of e)r[n]=FromSchemaType(n,t);return r}function mapped_Mapped(e,t,r={}){const n=IsSchema(e)?IndexPropertyKeys(e):e;const s=t({[y]:"MappedKey",keys:n});const o=MappedFunctionReturnType(n,s);return CloneType(O(o),r)}function keyof_property_keys_FromRest(e){const t=[];for(const r of e)t.push(KeyOfPropertyKeys(r));return t}function keyof_property_keys_FromIntersect(e){const t=keyof_property_keys_FromRest(e);const r=SetUnionMany(t);return r}function keyof_property_keys_FromUnion(e){const t=keyof_property_keys_FromRest(e);const r=SetIntersectMany(t);return r}function keyof_property_keys_FromTuple(e){return e.map(((e,t)=>t.toString()))}function keyof_property_keys_FromArray(e){return["[number]"]}function keyof_property_keys_FromProperties(e){return globalThis.Object.getOwnPropertyNames(e)}function FromPatternProperties(e){if(!k)return[];const t=globalThis.Object.getOwnPropertyNames(e);return t.map((e=>e[0]==="^"&&e[e.length-1]==="$"?e.slice(1,e.length-1):e))}function KeyOfPropertyKeys(e){return IsIntersect(e)?keyof_property_keys_FromIntersect(e.allOf):IsUnion(e)?keyof_property_keys_FromUnion(e.anyOf):IsTuple(e)?keyof_property_keys_FromTuple(e.items??[]):kind_IsArray(e)?keyof_property_keys_FromArray(e.items):kind_IsObject(e)?keyof_property_keys_FromProperties(e.properties):IsRecord(e)?FromPatternProperties(e.patternProperties):[]}let k=false;function KeyOfPattern(e){k=true;const t=KeyOfPropertyKeys(e);k=false;const r=t.map((e=>`(${e})`));return`^(${r.join("|")})$`}function KeyOfPropertyKeysToRest(e){return e.map((e=>e==="[number]"?number_Number():literal_Literal(e)))}function keyof_KeyOf(e,t={}){if(IsMappedResult(e)){return KeyOfFromMappedResult(e,t)}else{const r=KeyOfPropertyKeys(e);const n=KeyOfPropertyKeysToRest(r);const s=UnionEvaluated(n);return CloneType(s,t)}}function keyof_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=keyof_KeyOf(e[n],t);return r}function keyof_from_mapped_result_FromMappedResult(e,t){return keyof_from_mapped_result_FromProperties(e.properties,t)}function KeyOfFromMappedResult(e,t){const r=keyof_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function KeyOfPropertyEntries(e){const t=KeyOfPropertyKeys(e);const r=IndexFromPropertyKeys(e,t);return t.map(((e,n)=>[t[n],r[n]]))}function extends_undefined_Intersect(e){return e.allOf.every((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Union(e){return e.anyOf.some((e=>ExtendsUndefinedCheck(e)))}function extends_undefined_Not(e){return!ExtendsUndefinedCheck(e.not)}function ExtendsUndefinedCheck(e){return e[y]==="Intersect"?extends_undefined_Intersect(e):e[y]==="Union"?extends_undefined_Union(e):e[y]==="Not"?extends_undefined_Not(e):e[y]==="Undefined"?true:false}function DefaultErrorFunction(e){switch(e.errorType){case x.ArrayContains:return"Expected array to contain at least one matching value";case x.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case x.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case x.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case x.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case x.ArrayUniqueItems:return"Expected array elements to be unique";case x.Array:return"Expected array";case x.AsyncIterator:return"Expected AsyncIterator";case x.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case x.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case x.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case x.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case x.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case x.BigInt:return"Expected bigint";case x.Boolean:return"Expected boolean";case x.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case x.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case x.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case x.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case x.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case x.Date:return"Expected Date";case x.Function:return"Expected function";case x.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case x.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case x.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case x.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case x.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case x.Integer:return"Expected integer";case x.IntersectUnevaluatedProperties:return"Unexpected property";case x.Intersect:return"Expected all values to match";case x.Iterator:return"Expected Iterator";case x.Literal:return`Expected ${typeof e.schema.const==="string"?`'${e.schema.const}'`:e.schema.const}`;case x.Never:return"Never";case x.Not:return"Value should not match";case x.Null:return"Expected null";case x.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case x.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case x.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case x.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case x.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case x.Number:return"Expected number";case x.Object:return"Expected object";case x.ObjectAdditionalProperties:return"Unexpected property";case x.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case x.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case x.ObjectRequiredProperty:return"Expected required property";case x.Promise:return"Expected Promise";case x.RegExp:return"Expected string to match regular expression";case x.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case x.StringFormat:return`Expected string to match '${e.schema.format}' format`;case x.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case x.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case x.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case x.String:return"Expected string";case x.Symbol:return"Expected symbol";case x.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case x.Tuple:return"Expected tuple";case x.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case x.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case x.Uint8Array:return"Expected Uint8Array";case x.Undefined:return"Expected undefined";case x.Union:return"Expected union value";case x.Void:return"Expected void";case x.Kind:return`Expected kind '${e.schema[y]}'`;default:return"Unknown error type"}}let R=DefaultErrorFunction;function SetErrorFunction(e){R=e}function GetErrorFunction(){return R}class TypeDereferenceError extends TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$id}'`);this.schema=e}}function Resolve(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw new TypeDereferenceError(e);return deref_Deref(r,t)}function deref_Deref(e,t){return e[y]==="This"||e[y]==="Ref"?Resolve(e,t):e}class ValueHashError extends TypeBoxError{constructor(e){super(`Unable to hash value`);this.value=e}}var S;(function(e){e[e["Undefined"]=0]="Undefined";e[e["Null"]=1]="Null";e[e["Boolean"]=2]="Boolean";e[e["Number"]=3]="Number";e[e["String"]=4]="String";e[e["Object"]=5]="Object";e[e["Array"]=6]="Array";e[e["Date"]=7]="Date";e[e["Uint8Array"]=8]="Uint8Array";e[e["Symbol"]=9]="Symbol";e[e["BigInt"]=10]="BigInt"})(S||(S={}));let F=BigInt("14695981039346656037");const[D,N]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const P=Array.from({length:256}).map(((e,t)=>BigInt(t)));const L=new Float64Array(1);const U=new DataView(L.buffer);const M=new Uint8Array(L.buffer);function*NumberToBytes(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r>8*(t-1-r)&255}}function hash_ArrayType(e){FNV1A64(S.Array);for(const t of e){hash_Visit(t)}}function BooleanType(e){FNV1A64(S.Boolean);FNV1A64(e?1:0)}function BigIntType(e){FNV1A64(S.BigInt);U.setBigInt64(0,e);for(const e of M){FNV1A64(e)}}function hash_DateType(e){FNV1A64(S.Date);hash_Visit(e.getTime())}function NullType(e){FNV1A64(S.Null)}function NumberType(e){FNV1A64(S.Number);U.setFloat64(0,e);for(const e of M){FNV1A64(e)}}function hash_ObjectType(e){FNV1A64(S.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort()){hash_Visit(t);hash_Visit(e[t])}}function StringType(e){FNV1A64(S.String);for(let t=0;t=e.minItems)){yield Create(x.ArrayMinItems,e,r,n)}if(IsDefined(e.maxItems)&&!(n.length<=e.maxItems)){yield Create(x.ArrayMaxItems,e,r,n)}for(let s=0;serrors_Visit(s,t,`${r}${o}`,n).next().done===true?e+1:e),0);if(o===0){yield Create(x.ArrayContains,e,r,n)}if(IsNumber(e.minContains)&&oe.maxContains){yield Create(x.ArrayMaxContains,e,r,n)}}function*FromAsyncIterator(e,t,r,n){if(!IsAsyncIterator(n))yield Create(x.AsyncIterator,e,r,n)}function*FromBigInt(e,t,r,n){if(!IsBigInt(n))return yield Create(x.BigInt,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.BigIntExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.BigIntMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.BigIntMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===BigInt(0))){yield Create(x.BigIntMultipleOf,e,r,n)}}function*FromBoolean(e,t,r,n){if(!IsBoolean(n))yield Create(x.Boolean,e,r,n)}function*FromConstructor(e,t,r,n){yield*errors_Visit(e.returns,t,r,n.prototype)}function*FromDate(e,t,r,n){if(!IsDate(n))return yield Create(x.Date,e,r,n);if(IsDefined(e.exclusiveMaximumTimestamp)&&!(n.getTime()e.exclusiveMinimumTimestamp)){yield Create(x.DateExclusiveMinimumTimestamp,e,r,n)}if(IsDefined(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)){yield Create(x.DateMaximumTimestamp,e,r,n)}if(IsDefined(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)){yield Create(x.DateMinimumTimestamp,e,r,n)}if(IsDefined(e.multipleOfTimestamp)&&!(n.getTime()%e.multipleOfTimestamp===0)){yield Create(x.DateMultipleOfTimestamp,e,r,n)}}function*FromFunction(e,t,r,n){if(!IsFunction(n))yield Create(x.Function,e,r,n)}function*FromInteger(e,t,r,n){if(!IsInteger(n))return yield Create(x.Integer,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.IntegerExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.IntegerMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.IntegerMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.IntegerMultipleOf,e,r,n)}}function*errors_FromIntersect(e,t,r,n){for(const s of e.allOf){const o=errors_Visit(s,t,r,n).next();if(!o.done){yield Create(x.Intersect,e,r,n);yield o.value}}if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));for(const s of Object.getOwnPropertyNames(n)){if(!t.test(s)){yield Create(x.IntersectUnevaluatedProperties,e,`${r}/${s}`,n)}}}if(typeof e.unevaluatedProperties==="object"){const s=new RegExp(KeyOfPattern(e));for(const o of Object.getOwnPropertyNames(n)){if(!s.test(o)){const s=errors_Visit(e.unevaluatedProperties,t,`${r}/${o}`,n[o]).next();if(!s.done)yield s.value}}}}function*FromIterator(e,t,r,n){if(!IsIterator(n))yield Create(x.Iterator,e,r,n)}function*errors_FromLiteral(e,t,r,n){if(!(n===e.const))yield Create(x.Literal,e,r,n)}function*FromNever(e,t,r,n){yield Create(x.Never,e,r,n)}function*FromNot(e,t,r,n){if(errors_Visit(e.not,t,r,n).next().done===true)yield Create(x.Not,e,r,n)}function*FromNull(e,t,r,n){if(!IsNull(n))yield Create(x.Null,e,r,n)}function*FromNumber(e,t,r,n){if(!l.IsNumberLike(n))return yield Create(x.Number,e,r,n);if(IsDefined(e.exclusiveMaximum)&&!(ne.exclusiveMinimum)){yield Create(x.NumberExclusiveMinimum,e,r,n)}if(IsDefined(e.maximum)&&!(n<=e.maximum)){yield Create(x.NumberMaximum,e,r,n)}if(IsDefined(e.minimum)&&!(n>=e.minimum)){yield Create(x.NumberMinimum,e,r,n)}if(IsDefined(e.multipleOf)&&!(n%e.multipleOf===0)){yield Create(x.NumberMultipleOf,e,r,n)}}function*FromObject(e,t,r,n){if(!l.IsObjectLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const s=Array.isArray(e.required)?e.required:[];const o=Object.getOwnPropertyNames(e.properties);const i=Object.getOwnPropertyNames(n);for(const t of s){if(i.includes(t))continue;yield Create(x.ObjectRequiredProperty,e.properties[t],`${r}/${EscapeKey(t)}`,undefined)}if(e.additionalProperties===false){for(const t of i){if(!o.includes(t)){yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,n[t])}}}if(typeof e.additionalProperties==="object"){for(const s of i){if(o.includes(s))continue;yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,n[s])}}for(const s of o){const o=e.properties[s];if(e.required&&e.required.includes(s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s]);if(ExtendsUndefinedCheck(e)&&!(s in n)){yield Create(x.ObjectRequiredProperty,o,`${r}/${EscapeKey(s)}`,undefined)}}else{if(l.IsExactOptionalProperty(n,s)){yield*errors_Visit(o,t,`${r}/${EscapeKey(s)}`,n[s])}}}}function*FromPromise(e,t,r,n){if(!IsPromise(n))yield Create(x.Promise,e,r,n)}function*FromRecord(e,t,r,n){if(!l.IsRecordLike(n))return yield Create(x.Object,e,r,n);if(IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)){yield Create(x.ObjectMinProperties,e,r,n)}if(IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)){yield Create(x.ObjectMaxProperties,e,r,n)}const[s,o]=Object.entries(e.patternProperties)[0];const i=new RegExp(s);for(const[e,s]of Object.entries(n)){if(i.test(e))yield*errors_Visit(o,t,`${r}/${EscapeKey(e)}`,s)}if(typeof e.additionalProperties==="object"){for(const[s,o]of Object.entries(n)){if(!i.test(s))yield*errors_Visit(e.additionalProperties,t,`${r}/${EscapeKey(s)}`,o)}}if(e.additionalProperties===false){for(const[t,s]of Object.entries(n)){if(i.test(t))continue;return yield Create(x.ObjectAdditionalProperties,e,`${r}/${EscapeKey(t)}`,s)}}}function*FromRef(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*FromRegExp(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}const s=new RegExp(e.source,e.flags);if(!s.test(n)){return yield Create(x.RegExp,e,r,n)}}function*FromString(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);if(IsDefined(e.minLength)&&!(n.length>=e.minLength)){yield Create(x.StringMinLength,e,r,n)}if(IsDefined(e.maxLength)&&!(n.length<=e.maxLength)){yield Create(x.StringMaxLength,e,r,n)}if(IsString(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(n)){yield Create(x.StringPattern,e,r,n)}}if(IsString(e.format)){if(!Has(e.format)){yield Create(x.StringFormatUnknown,e,r,n)}else{const t=Get(e.format);if(!t(n)){yield Create(x.StringFormat,e,r,n)}}}}function*FromSymbol(e,t,r,n){if(!IsSymbol(n))yield Create(x.Symbol,e,r,n)}function*errors_FromTemplateLiteral(e,t,r,n){if(!IsString(n))return yield Create(x.String,e,r,n);const s=new RegExp(e.pattern);if(!s.test(n)){yield Create(x.StringPattern,e,r,n)}}function*FromThis(e,t,r,n){yield*errors_Visit(deref_Deref(e,t),t,r,n)}function*errors_FromTuple(e,t,r,n){if(!IsArray(n))return yield Create(x.Tuple,e,r,n);if(e.items===undefined&&!(n.length===0)){return yield Create(x.TupleLength,e,r,n)}if(!(n.length===e.maxItems)){return yield Create(x.TupleLength,e,r,n)}if(!e.items){return}for(let s=0;s0){yield Create(x.Union,e,r,n)}}function*FromUint8Array(e,t,r,n){if(!IsUint8Array(n))return yield Create(x.Uint8Array,e,r,n);if(IsDefined(e.maxByteLength)&&!(n.length<=e.maxByteLength)){yield Create(x.Uint8ArrayMaxByteLength,e,r,n)}if(IsDefined(e.minByteLength)&&!(n.length>=e.minByteLength)){yield Create(x.Uint8ArrayMinByteLength,e,r,n)}}function*FromUnknown(e,t,r,n){}function*FromVoid(e,t,r,n){if(!l.IsVoidLike(n))yield Create(x.Void,e,r,n)}function*FromKind(e,t,r,n){const s=type_Get(e[y]);if(!s(e,n))yield Create(x.Kind,e,r,n)}function*errors_Visit(e,t,r,n){const s=IsDefined(e.$id)?[...t,e]:t;const o=e;switch(o[y]){case"Any":return yield*FromAny(o,s,r,n);case"Array":return yield*errors_FromArray(o,s,r,n);case"AsyncIterator":return yield*FromAsyncIterator(o,s,r,n);case"BigInt":return yield*FromBigInt(o,s,r,n);case"Boolean":return yield*FromBoolean(o,s,r,n);case"Constructor":return yield*FromConstructor(o,s,r,n);case"Date":return yield*FromDate(o,s,r,n);case"Function":return yield*FromFunction(o,s,r,n);case"Integer":return yield*FromInteger(o,s,r,n);case"Intersect":return yield*errors_FromIntersect(o,s,r,n);case"Iterator":return yield*FromIterator(o,s,r,n);case"Literal":return yield*errors_FromLiteral(o,s,r,n);case"Never":return yield*FromNever(o,s,r,n);case"Not":return yield*FromNot(o,s,r,n);case"Null":return yield*FromNull(o,s,r,n);case"Number":return yield*FromNumber(o,s,r,n);case"Object":return yield*FromObject(o,s,r,n);case"Promise":return yield*FromPromise(o,s,r,n);case"Record":return yield*FromRecord(o,s,r,n);case"Ref":return yield*FromRef(o,s,r,n);case"RegExp":return yield*FromRegExp(o,s,r,n);case"String":return yield*FromString(o,s,r,n);case"Symbol":return yield*FromSymbol(o,s,r,n);case"TemplateLiteral":return yield*errors_FromTemplateLiteral(o,s,r,n);case"This":return yield*FromThis(o,s,r,n);case"Tuple":return yield*errors_FromTuple(o,s,r,n);case"Undefined":return yield*FromUndefined(o,s,r,n);case"Union":return yield*errors_FromUnion(o,s,r,n);case"Uint8Array":return yield*FromUint8Array(o,s,r,n);case"Unknown":return yield*FromUnknown(o,s,r,n);case"Void":return yield*FromVoid(o,s,r,n);default:if(!type_Has(o[y]))throw new ValueErrorsUnknownTypeError(e);return yield*FromKind(o,s,r,n)}}function Errors(...e){const t=e.length===3?errors_Visit(e[0],e[1],"",e[2]):errors_Visit(e[0],[],"",e[1]);return new ValueErrorIterator(t)}function any_Any(e={}){return{...e,[y]:"Any"}}function unknown_Unknown(e={}){return{...e,[y]:"Unknown"}}class TypeGuardUnknownTypeError extends TypeBoxError{}const G=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function IsPattern(e){try{new RegExp(e);return true}catch{return false}}function IsControlCharacterFree(e){if(!value_IsString(e))return false;for(let t=0;t=7&&r<=13||r===27||r===127){return false}}return true}function IsAdditionalProperties(e){return IsOptionalBoolean(e)||type_IsSchema(e)}function IsOptionalBigInt(e){return value_IsUndefined(e)||value_IsBigInt(e)}function IsOptionalNumber(e){return value_IsUndefined(e)||value_IsNumber(e)}function IsOptionalBoolean(e){return value_IsUndefined(e)||value_IsBoolean(e)}function IsOptionalString(e){return value_IsUndefined(e)||value_IsString(e)}function IsOptionalPattern(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)&&IsPattern(e)}function IsOptionalFormat(e){return value_IsUndefined(e)||value_IsString(e)&&IsControlCharacterFree(e)}function IsOptionalSchema(e){return value_IsUndefined(e)||type_IsSchema(e)}function type_IsReadonly(e){return value_IsObject(e)&&e[h]==="Readonly"}function type_IsOptional(e){return value_IsObject(e)&&e[m]==="Optional"}function type_IsAny(e){return type_IsKindOf(e,"Any")&&IsOptionalString(e.$id)}function type_IsArray(e){return type_IsKindOf(e,"Array")&&e.type==="array"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)&&IsOptionalNumber(e.minItems)&&IsOptionalNumber(e.maxItems)&&IsOptionalBoolean(e.uniqueItems)&&IsOptionalSchema(e.contains)&&IsOptionalNumber(e.minContains)&&IsOptionalNumber(e.maxContains)}function type_IsAsyncIterator(e){return type_IsKindOf(e,"AsyncIterator")&&e.type==="AsyncIterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsBigInt(e){return type_IsKindOf(e,"BigInt")&&e.type==="bigint"&&IsOptionalString(e.$id)&&IsOptionalBigInt(e.exclusiveMaximum)&&IsOptionalBigInt(e.exclusiveMinimum)&&IsOptionalBigInt(e.maximum)&&IsOptionalBigInt(e.minimum)&&IsOptionalBigInt(e.multipleOf)}function type_IsBoolean(e){return type_IsKindOf(e,"Boolean")&&e.type==="boolean"&&IsOptionalString(e.$id)}function type_IsConstructor(e){return type_IsKindOf(e,"Constructor")&&e.type==="Constructor"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsDate(e){return type_IsKindOf(e,"Date")&&e.type==="Date"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximumTimestamp)&&IsOptionalNumber(e.exclusiveMinimumTimestamp)&&IsOptionalNumber(e.maximumTimestamp)&&IsOptionalNumber(e.minimumTimestamp)&&IsOptionalNumber(e.multipleOfTimestamp)}function type_IsFunction(e){return type_IsKindOf(e,"Function")&&e.type==="Function"&&IsOptionalString(e.$id)&&value_IsArray(e.parameters)&&e.parameters.every((e=>type_IsSchema(e)))&&type_IsSchema(e.returns)}function type_IsInteger(e){return type_IsKindOf(e,"Integer")&&e.type==="integer"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsProperties(e){return value_IsObject(e)&&Object.entries(e).every((([e,t])=>IsControlCharacterFree(e)&&type_IsSchema(t)))}function type_IsIntersect(e){return type_IsKindOf(e,"Intersect")&&(value_IsString(e.type)&&e.type!=="object"?false:true)&&value_IsArray(e.allOf)&&e.allOf.every((e=>type_IsSchema(e)&&!type_IsTransform(e)))&&IsOptionalString(e.type)&&(IsOptionalBoolean(e.unevaluatedProperties)||IsOptionalSchema(e.unevaluatedProperties))&&IsOptionalString(e.$id)}function type_IsIterator(e){return type_IsKindOf(e,"Iterator")&&e.type==="Iterator"&&IsOptionalString(e.$id)&&type_IsSchema(e.items)}function type_IsKindOf(e,t){return value_IsObject(e)&&y in e&&e[y]===t}function type_IsLiteralString(e){return type_IsLiteral(e)&&value_IsString(e.const)}function type_IsLiteralNumber(e){return type_IsLiteral(e)&&value_IsNumber(e.const)}function type_IsLiteralBoolean(e){return type_IsLiteral(e)&&value_IsBoolean(e.const)}function type_IsLiteral(e){return type_IsKindOf(e,"Literal")&&IsOptionalString(e.$id)&&IsLiteralValue(e.const)}function IsLiteralValue(e){return value_IsBoolean(e)||value_IsNumber(e)||value_IsString(e)}function type_IsMappedKey(e){return type_IsKindOf(e,"MappedKey")&&value_IsArray(e.keys)&&e.keys.every((e=>value_IsNumber(e)||value_IsString(e)))}function type_IsMappedResult(e){return type_IsKindOf(e,"MappedResult")&&type_IsProperties(e.properties)}function type_IsNever(e){return type_IsKindOf(e,"Never")&&value_IsObject(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function type_IsNot(e){return type_IsKindOf(e,"Not")&&type_IsSchema(e.not)}function type_IsNull(e){return type_IsKindOf(e,"Null")&&e.type==="null"&&IsOptionalString(e.$id)}function type_IsNumber(e){return type_IsKindOf(e,"Number")&&e.type==="number"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.exclusiveMaximum)&&IsOptionalNumber(e.exclusiveMinimum)&&IsOptionalNumber(e.maximum)&&IsOptionalNumber(e.minimum)&&IsOptionalNumber(e.multipleOf)}function type_IsObject(e){return type_IsKindOf(e,"Object")&&e.type==="object"&&IsOptionalString(e.$id)&&type_IsProperties(e.properties)&&IsAdditionalProperties(e.additionalProperties)&&IsOptionalNumber(e.minProperties)&&IsOptionalNumber(e.maxProperties)}function type_IsPromise(e){return type_IsKindOf(e,"Promise")&&e.type==="Promise"&&IsOptionalString(e.$id)&&type_IsSchema(e.item)}function type_IsRecord(e){return type_IsKindOf(e,"Record")&&e.type==="object"&&IsOptionalString(e.$id)&&IsAdditionalProperties(e.additionalProperties)&&value_IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return t.length===1&&IsPattern(t[0])&&value_IsObject(e.patternProperties)&&type_IsSchema(e.patternProperties[t[0]])})(e)}function type_IsRecursive(e){return value_IsObject(e)&&E in e&&e[E]==="Recursive"}function type_IsRef(e){return type_IsKindOf(e,"Ref")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsRegExp(e){return type_IsKindOf(e,"RegExp")&&IsOptionalString(e.$id)&&value_IsString(e.source)&&value_IsString(e.flags)&&IsOptionalNumber(e.maxLength)&&IsOptionalNumber(e.minLength)}function type_IsString(e){return type_IsKindOf(e,"String")&&e.type==="string"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minLength)&&IsOptionalNumber(e.maxLength)&&IsOptionalPattern(e.pattern)&&IsOptionalFormat(e.format)}function type_IsSymbol(e){return type_IsKindOf(e,"Symbol")&&e.type==="symbol"&&IsOptionalString(e.$id)}function type_IsTemplateLiteral(e){return type_IsKindOf(e,"TemplateLiteral")&&e.type==="string"&&value_IsString(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function type_IsThis(e){return type_IsKindOf(e,"This")&&IsOptionalString(e.$id)&&value_IsString(e.$ref)}function type_IsTransform(e){return value_IsObject(e)&&g in e}function type_IsTuple(e){return type_IsKindOf(e,"Tuple")&&e.type==="array"&&IsOptionalString(e.$id)&&value_IsNumber(e.minItems)&&value_IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(value_IsUndefined(e.items)&&value_IsUndefined(e.additionalItems)&&e.minItems===0||value_IsArray(e.items)&&e.items.every((e=>type_IsSchema(e))))}function type_IsUndefined(e){return type_IsKindOf(e,"Undefined")&&e.type==="undefined"&&IsOptionalString(e.$id)}function IsUnionLiteral(e){return type_IsUnion(e)&&e.anyOf.every((e=>type_IsLiteralString(e)||type_IsLiteralNumber(e)))}function type_IsUnion(e){return type_IsKindOf(e,"Union")&&IsOptionalString(e.$id)&&value_IsObject(e)&&value_IsArray(e.anyOf)&&e.anyOf.every((e=>type_IsSchema(e)))}function type_IsUint8Array(e){return type_IsKindOf(e,"Uint8Array")&&e.type==="Uint8Array"&&IsOptionalString(e.$id)&&IsOptionalNumber(e.minByteLength)&&IsOptionalNumber(e.maxByteLength)}function type_IsUnknown(e){return type_IsKindOf(e,"Unknown")&&IsOptionalString(e.$id)}function type_IsUnsafe(e){return type_IsKindOf(e,"Unsafe")}function type_IsVoid(e){return type_IsKindOf(e,"Void")&&e.type==="void"&&IsOptionalString(e.$id)}function type_IsKind(e){return value_IsObject(e)&&y in e&&value_IsString(e[y])&&!G.includes(e[y])}function type_IsSchema(e){return value_IsObject(e)&&(type_IsAny(e)||type_IsArray(e)||type_IsBoolean(e)||type_IsBigInt(e)||type_IsAsyncIterator(e)||type_IsConstructor(e)||type_IsDate(e)||type_IsFunction(e)||type_IsInteger(e)||type_IsIntersect(e)||type_IsIterator(e)||type_IsLiteral(e)||type_IsMappedKey(e)||type_IsMappedResult(e)||type_IsNever(e)||type_IsNot(e)||type_IsNull(e)||type_IsNumber(e)||type_IsObject(e)||type_IsPromise(e)||type_IsRecord(e)||type_IsRef(e)||type_IsRegExp(e)||type_IsString(e)||type_IsSymbol(e)||type_IsTemplateLiteral(e)||type_IsThis(e)||type_IsTuple(e)||type_IsUndefined(e)||type_IsUnion(e)||type_IsUint8Array(e)||type_IsUnknown(e)||type_IsUnsafe(e)||type_IsVoid(e)||type_IsKind(e))}class ExtendsResolverError extends TypeBoxError{}var j;(function(e){e[e["Union"]=0]="Union";e[e["True"]=1]="True";e[e["False"]=2]="False"})(j||(j={}));function IntoBooleanResult(e){return e===j.False?e:j.True}function Throw(e){throw new ExtendsResolverError(e)}function IsStructuralRight(e){return type_IsNever(e)||type_IsIntersect(e)||type_IsUnion(e)||type_IsUnknown(e)||type_IsAny(e)}function StructuralRight(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):Throw("StructuralRight")}function FromAnyRight(e,t){return j.True}function extends_check_FromAny(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)&&t.anyOf.some((e=>type_IsAny(e)||type_IsUnknown(e)))?j.True:type_IsUnion(t)?j.Union:type_IsUnknown(t)?j.True:type_IsAny(t)?j.True:j.Union}function FromArrayRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)?j.True:j.False}function extends_check_FromArray(e,t){return type_IsObject(t)&&IsObjectArrayLike(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):!type_IsArray(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromAsyncIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsAsyncIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromBigInt(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBigInt(t)?j.True:j.False}function FromBooleanRight(e,t){return type_IsLiteralBoolean(e)?j.True:type_IsBoolean(e)?j.True:j.False}function extends_check_FromBoolean(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsBoolean(t)?j.True:j.False}function extends_check_FromConstructor(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsConstructor(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function extends_check_FromDate(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsDate(t)?j.True:j.False}function extends_check_FromFunction(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsFunction(t)?j.False:e.parameters.length>t.parameters.length?j.False:!e.parameters.every(((e,r)=>IntoBooleanResult(extends_check_Visit(t.parameters[r],e))===j.True))?j.False:IntoBooleanResult(extends_check_Visit(e.returns,t.returns))}function FromIntegerRight(e,t){return type_IsLiteral(e)&&value_IsNumber(e.const)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromInteger(e,t){return type_IsInteger(t)||type_IsNumber(t)?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):j.False}function FromIntersectRight(e,t){return t.allOf.every((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIntersect(e,t){return e.allOf.some((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromIterator(e,t){return IsStructuralRight(t)?StructuralRight(e,t):!type_IsIterator(t)?j.False:IntoBooleanResult(extends_check_Visit(e.items,t.items))}function extends_check_FromLiteral(e,t){return type_IsLiteral(t)&&t.const===e.const?j.True:IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):j.False}function FromNeverRight(e,t){return j.False}function extends_check_FromNever(e,t){return j.True}function UnwrapTNot(e){let[t,r]=[e,0];while(true){if(!type_IsNot(t))break;t=t.not;r+=1}return r%2===0?t:unknown_Unknown()}function extends_check_FromNot(e,t){return type_IsNot(e)?extends_check_Visit(UnwrapTNot(e),t):type_IsNot(t)?extends_check_Visit(e,UnwrapTNot(t)):Throw("Invalid fallthrough for Not")}function extends_check_FromNull(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsNull(t)?j.True:j.False}function FromNumberRight(e,t){return type_IsLiteralNumber(e)?j.True:type_IsNumber(e)||type_IsInteger(e)?j.True:j.False}function extends_check_FromNumber(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsInteger(t)||type_IsNumber(t)?j.True:j.False}function IsObjectPropertyCount(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function IsObjectStringLike(e){return IsObjectArrayLike(e)}function IsObjectSymbolLike(e){return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"description"in e.properties&&type_IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(type_IsString(e.properties.description.anyOf[0])&&type_IsUndefined(e.properties.description.anyOf[1])||type_IsString(e.properties.description.anyOf[1])&&type_IsUndefined(e.properties.description.anyOf[0]))}function IsObjectNumberLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBooleanLike(e){return IsObjectPropertyCount(e,0)}function IsObjectBigIntLike(e){return IsObjectPropertyCount(e,0)}function IsObjectDateLike(e){return IsObjectPropertyCount(e,0)}function IsObjectUint8ArrayLike(e){return IsObjectArrayLike(e)}function IsObjectFunctionLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectConstructorLike(e){return IsObjectPropertyCount(e,0)}function IsObjectArrayLike(e){const t=number_Number();return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"length"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["length"],t))===j.True}function IsObjectPromiseLike(e){const t=function_Function([any_Any()],any_Any());return IsObjectPropertyCount(e,0)||IsObjectPropertyCount(e,1)&&"then"in e.properties&&IntoBooleanResult(extends_check_Visit(e.properties["then"],t))===j.True}function Property(e,t){return extends_check_Visit(e,t)===j.False?j.False:type_IsOptional(e)&&!type_IsOptional(t)?j.False:j.True}function FromObjectRight(e,t){return type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:type_IsNever(e)||type_IsLiteralString(e)&&IsObjectStringLike(t)||type_IsLiteralNumber(e)&&IsObjectNumberLike(t)||type_IsLiteralBoolean(e)&&IsObjectBooleanLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsBigInt(e)&&IsObjectBigIntLike(t)||type_IsString(e)&&IsObjectStringLike(t)||type_IsSymbol(e)&&IsObjectSymbolLike(t)||type_IsNumber(e)&&IsObjectNumberLike(t)||type_IsInteger(e)&&IsObjectNumberLike(t)||type_IsBoolean(e)&&IsObjectBooleanLike(t)||type_IsUint8Array(e)&&IsObjectUint8ArrayLike(t)||type_IsDate(e)&&IsObjectDateLike(t)||type_IsConstructor(e)&&IsObjectConstructorLike(t)||type_IsFunction(e)&&IsObjectFunctionLike(t)?j.True:type_IsRecord(e)&&type_IsString(RecordKey(e))?(()=>t[E]==="Record"?j.True:j.False)():type_IsRecord(e)&&type_IsNumber(RecordKey(e))?(()=>IsObjectPropertyCount(t,0)?j.True:j.False)():j.False}function extends_check_FromObject(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):!type_IsObject(t)?j.False:(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!type_IsOptional(t.properties[r])){return j.False}if(type_IsOptional(t.properties[r])){return j.True}if(Property(e.properties[r],t.properties[r])===j.False){return j.False}}return j.True})()}function extends_check_FromPromise(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectPromiseLike(t)?j.True:!type_IsPromise(t)?j.False:IntoBooleanResult(extends_check_Visit(e.item,t.item))}function RecordKey(e){return v in e.patternProperties?number_Number():w in e.patternProperties?string_String():Throw("Unknown record key pattern")}function RecordValue(e){return v in e.patternProperties?e.patternProperties[v]:w in e.patternProperties?e.patternProperties[w]:Throw("Unable to get record value schema")}function FromRecordRight(e,t){const[r,n]=[RecordKey(t),RecordValue(t)];return type_IsLiteralString(e)&&type_IsNumber(r)&&IntoBooleanResult(extends_check_Visit(e,n))===j.True?j.True:type_IsUint8Array(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsString(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsArray(e)&&type_IsNumber(r)?extends_check_Visit(e,n):type_IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties)){if(Property(n,e.properties[t])===j.False){return j.False}}return j.True})():j.False}function extends_check_FromRecord(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):!type_IsRecord(t)?j.False:extends_check_Visit(RecordValue(e),RecordValue(t))}function extends_check_FromRegExp(e,t){const r=type_IsRegExp(e)?string_String():e;const n=type_IsRegExp(t)?string_String():t;return extends_check_Visit(r,n)}function FromStringRight(e,t){return type_IsLiteral(e)&&value_IsString(e.const)?j.True:type_IsString(e)?j.True:j.False}function extends_check_FromString(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsString(t)?j.True:j.False}function extends_check_FromSymbol(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsSymbol(t)?j.True:j.False}function extends_check_FromTemplateLiteral(e,t){return type_IsTemplateLiteral(e)?extends_check_Visit(TemplateLiteralToUnion(e),t):type_IsTemplateLiteral(t)?extends_check_Visit(e,TemplateLiteralToUnion(t)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(e,t){return type_IsArray(t)&&e.items!==undefined&&e.items.every((e=>extends_check_Visit(e,t.items)===j.True))}function FromTupleRight(e,t){return type_IsNever(e)?j.True:type_IsUnknown(e)?j.False:type_IsAny(e)?j.Union:j.False}function extends_check_FromTuple(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)&&IsObjectArrayLike(t)?j.True:type_IsArray(t)&&IsArrayOfTuple(e,t)?j.True:!type_IsTuple(t)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)||!value_IsUndefined(e.items)&&value_IsUndefined(t.items)?j.False:value_IsUndefined(e.items)&&!value_IsUndefined(t.items)?j.True:e.items.every(((e,r)=>extends_check_Visit(e,t.items[r])===j.True))?j.True:j.False}function extends_check_FromUint8Array(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsUint8Array(t)?j.True:j.False}function extends_check_FromUndefined(e,t){return IsStructuralRight(t)?StructuralRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsRecord(t)?FromRecordRight(e,t):type_IsVoid(t)?FromVoidRight(e,t):type_IsUndefined(t)?j.True:j.False}function FromUnionRight(e,t){return t.anyOf.some((t=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function extends_check_FromUnion(e,t){return e.anyOf.every((e=>extends_check_Visit(e,t)===j.True))?j.True:j.False}function FromUnknownRight(e,t){return j.True}function extends_check_FromUnknown(e,t){return type_IsNever(t)?FromNeverRight(e,t):type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsString(t)?FromStringRight(e,t):type_IsNumber(t)?FromNumberRight(e,t):type_IsInteger(t)?FromIntegerRight(e,t):type_IsBoolean(t)?FromBooleanRight(e,t):type_IsArray(t)?FromArrayRight(e,t):type_IsTuple(t)?FromTupleRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsUnknown(t)?j.True:j.False}function FromVoidRight(e,t){return type_IsUndefined(e)?j.True:type_IsUndefined(e)?j.True:j.False}function extends_check_FromVoid(e,t){return type_IsIntersect(t)?FromIntersectRight(e,t):type_IsUnion(t)?FromUnionRight(e,t):type_IsUnknown(t)?FromUnknownRight(e,t):type_IsAny(t)?FromAnyRight(e,t):type_IsObject(t)?FromObjectRight(e,t):type_IsVoid(t)?j.True:j.False}function extends_check_Visit(e,t){return type_IsTemplateLiteral(e)||type_IsTemplateLiteral(t)?extends_check_FromTemplateLiteral(e,t):type_IsRegExp(e)||type_IsRegExp(t)?extends_check_FromRegExp(e,t):type_IsNot(e)||type_IsNot(t)?extends_check_FromNot(e,t):type_IsAny(e)?extends_check_FromAny(e,t):type_IsArray(e)?extends_check_FromArray(e,t):type_IsBigInt(e)?extends_check_FromBigInt(e,t):type_IsBoolean(e)?extends_check_FromBoolean(e,t):type_IsAsyncIterator(e)?extends_check_FromAsyncIterator(e,t):type_IsConstructor(e)?extends_check_FromConstructor(e,t):type_IsDate(e)?extends_check_FromDate(e,t):type_IsFunction(e)?extends_check_FromFunction(e,t):type_IsInteger(e)?extends_check_FromInteger(e,t):type_IsIntersect(e)?extends_check_FromIntersect(e,t):type_IsIterator(e)?extends_check_FromIterator(e,t):type_IsLiteral(e)?extends_check_FromLiteral(e,t):type_IsNever(e)?extends_check_FromNever(e,t):type_IsNull(e)?extends_check_FromNull(e,t):type_IsNumber(e)?extends_check_FromNumber(e,t):type_IsObject(e)?extends_check_FromObject(e,t):type_IsRecord(e)?extends_check_FromRecord(e,t):type_IsString(e)?extends_check_FromString(e,t):type_IsSymbol(e)?extends_check_FromSymbol(e,t):type_IsTuple(e)?extends_check_FromTuple(e,t):type_IsPromise(e)?extends_check_FromPromise(e,t):type_IsUint8Array(e)?extends_check_FromUint8Array(e,t):type_IsUndefined(e)?extends_check_FromUndefined(e,t):type_IsUnion(e)?extends_check_FromUnion(e,t):type_IsUnknown(e)?extends_check_FromUnknown(e,t):type_IsVoid(e)?extends_check_FromVoid(e,t):Throw(`Unknown left type operand '${e[y]}'`)}function ExtendsCheck(e,t){return extends_check_Visit(e,t)}function extends_from_mapped_result_FromProperties(e,t,r,n,s){const o={};for(const i of globalThis.Object.getOwnPropertyNames(e))o[i]=extends_Extends(e[i],t,r,n,s);return o}function extends_from_mapped_result_FromMappedResult(e,t,r,n,s){return extends_from_mapped_result_FromProperties(e.properties,t,r,n,s)}function ExtendsFromMappedResult(e,t,r,n,s){const o=extends_from_mapped_result_FromMappedResult(e,t,r,n,s);return MappedResult(o)}function ExtendsResolve(e,t,r,n){const s=ExtendsCheck(e,t);return s===j.Union?union_Union([r,n]):s===j.True?r:n}function extends_Extends(e,t,r,n,s={}){return IsMappedResult(e)?ExtendsFromMappedResult(e,t,r,n,s):IsMappedKey(e)?CloneType(ExtendsFromMappedKey(e,t,r,n,s)):CloneType(ExtendsResolve(e,t,r,n),s)}function FromPropertyKey(e,t,r,n,s){return{[e]:extends_Extends(literal_Literal(e),t,r,n,s)}}function FromPropertyKeys(e,t,r,n,s){return e.reduce(((e,o)=>({...e,...FromPropertyKey(o,t,r,n,s)})),{})}function extends_from_mapped_key_FromMappedKey(e,t,r,n,s){return FromPropertyKeys(e.keys,t,r,n,s)}function ExtendsFromMappedKey(e,t,r,n,s){const o=extends_from_mapped_key_FromMappedKey(e,t,r,n,s);return MappedResult(o)}class ValueCheckUnknownTypeError extends TypeBoxError{constructor(e){super(`Unknown type`);this.schema=e}}function IsAnyOrUnknown(e){return e[y]==="Any"||e[y]==="Unknown"}function check_IsDefined(e){return e!==undefined}function check_FromAny(e,t,r){return true}function check_FromArray(e,t,r){if(!IsArray(r))return false;if(check_IsDefined(e.minItems)&&!(r.length>=e.minItems)){return false}if(check_IsDefined(e.maxItems)&&!(r.length<=e.maxItems)){return false}if(!r.every((r=>check_Visit(e.items,t,r)))){return false}if(e.uniqueItems===true&&!function(){const e=new Set;for(const t of r){const r=Hash(t);if(e.has(r)){return false}else{e.add(r)}}return true}()){return false}if(!(check_IsDefined(e.contains)||IsNumber(e.minContains)||IsNumber(e.maxContains))){return true}const n=check_IsDefined(e.contains)?e.contains:never_Never();const s=r.reduce(((e,r)=>check_Visit(n,t,r)?e+1:e),0);if(s===0){return false}if(IsNumber(e.minContains)&&se.maxContains){return false}return true}function check_FromAsyncIterator(e,t,r){return IsAsyncIterator(r)}function check_FromBigInt(e,t,r){if(!IsBigInt(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===BigInt(0))){return false}return true}function check_FromBoolean(e,t,r){return IsBoolean(r)}function check_FromConstructor(e,t,r){return check_Visit(e.returns,t,r.prototype)}function check_FromDate(e,t,r){if(!IsDate(r))return false;if(check_IsDefined(e.exclusiveMaximumTimestamp)&&!(r.getTime()e.exclusiveMinimumTimestamp)){return false}if(check_IsDefined(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)){return false}if(check_IsDefined(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)){return false}if(check_IsDefined(e.multipleOfTimestamp)&&!(r.getTime()%e.multipleOfTimestamp===0)){return false}return true}function check_FromFunction(e,t,r){return IsFunction(r)}function check_FromInteger(e,t,r){if(!IsInteger(r)){return false}if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromIntersect(e,t,r){const n=e.allOf.every((e=>check_Visit(e,t,r)));if(e.unevaluatedProperties===false){const t=new RegExp(KeyOfPattern(e));const s=Object.getOwnPropertyNames(r).every((e=>t.test(e)));return n&&s}else if(type_IsSchema(e.unevaluatedProperties)){const s=new RegExp(KeyOfPattern(e));const o=Object.getOwnPropertyNames(r).every((n=>s.test(n)||check_Visit(e.unevaluatedProperties,t,r[n])));return n&&o}else{return n}}function check_FromIterator(e,t,r){return IsIterator(r)}function check_FromLiteral(e,t,r){return r===e.const}function check_FromNever(e,t,r){return false}function check_FromNot(e,t,r){return!check_Visit(e.not,t,r)}function check_FromNull(e,t,r){return IsNull(r)}function check_FromNumber(e,t,r){if(!l.IsNumberLike(r))return false;if(check_IsDefined(e.exclusiveMaximum)&&!(re.exclusiveMinimum)){return false}if(check_IsDefined(e.minimum)&&!(r>=e.minimum)){return false}if(check_IsDefined(e.maximum)&&!(r<=e.maximum)){return false}if(check_IsDefined(e.multipleOf)&&!(r%e.multipleOf===0)){return false}return true}function check_FromObject(e,t,r){if(!l.IsObjectLike(r))return false;if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const n=Object.getOwnPropertyNames(e.properties);for(const s of n){const n=e.properties[s];if(e.required&&e.required.includes(s)){if(!check_Visit(n,t,r[s])){return false}if((ExtendsUndefinedCheck(n)||IsAnyOrUnknown(n))&&!(s in r)){return false}}else{if(l.IsExactOptionalProperty(r,s)&&!check_Visit(n,t,r[s])){return false}}}if(e.additionalProperties===false){const t=Object.getOwnPropertyNames(r);if(e.required&&e.required.length===n.length&&t.length===n.length){return true}else{return t.every((e=>n.includes(e)))}}else if(typeof e.additionalProperties==="object"){const s=Object.getOwnPropertyNames(r);return s.every((s=>n.includes(s)||check_Visit(e.additionalProperties,t,r[s])))}else{return true}}function check_FromPromise(e,t,r){return IsPromise(r)}function check_FromRecord(e,t,r){if(!l.IsRecordLike(r)){return false}if(check_IsDefined(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)){return false}if(check_IsDefined(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)){return false}const[n,s]=Object.entries(e.patternProperties)[0];const o=new RegExp(n);const i=Object.entries(r).every((([e,r])=>o.test(e)?check_Visit(s,t,r):true));const a=typeof e.additionalProperties==="object"?Object.entries(r).every((([r,n])=>!o.test(r)?check_Visit(e.additionalProperties,t,n):true)):true;const c=e.additionalProperties===false?Object.getOwnPropertyNames(r).every((e=>o.test(e))):true;return i&&a&&c}function check_FromRef(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromRegExp(e,t,r){const n=new RegExp(e.source,e.flags);if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}return n.test(r)}function check_FromString(e,t,r){if(!IsString(r)){return false}if(check_IsDefined(e.minLength)){if(!(r.length>=e.minLength))return false}if(check_IsDefined(e.maxLength)){if(!(r.length<=e.maxLength))return false}if(check_IsDefined(e.pattern)){const t=new RegExp(e.pattern);if(!t.test(r))return false}if(check_IsDefined(e.format)){if(!Has(e.format))return false;const t=Get(e.format);return t(r)}return true}function check_FromSymbol(e,t,r){return IsSymbol(r)}function check_FromTemplateLiteral(e,t,r){return IsString(r)&&new RegExp(e.pattern).test(r)}function check_FromThis(e,t,r){return check_Visit(deref_Deref(e,t),t,r)}function check_FromTuple(e,t,r){if(!IsArray(r)){return false}if(e.items===undefined&&!(r.length===0)){return false}if(!(r.length===e.maxItems)){return false}if(!e.items){return true}for(let n=0;ncheck_Visit(e,t,r)))}function check_FromUint8Array(e,t,r){if(!IsUint8Array(r)){return false}if(check_IsDefined(e.maxByteLength)&&!(r.length<=e.maxByteLength)){return false}if(check_IsDefined(e.minByteLength)&&!(r.length>=e.minByteLength)){return false}return true}function check_FromUnknown(e,t,r){return true}function check_FromVoid(e,t,r){return l.IsVoidLike(r)}function check_FromKind(e,t,r){if(!type_Has(e[y]))return false;const n=type_Get(e[y]);return n(e,r)}function check_Visit(e,t,r){const n=check_IsDefined(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Any":return check_FromAny(s,n,r);case"Array":return check_FromArray(s,n,r);case"AsyncIterator":return check_FromAsyncIterator(s,n,r);case"BigInt":return check_FromBigInt(s,n,r);case"Boolean":return check_FromBoolean(s,n,r);case"Constructor":return check_FromConstructor(s,n,r);case"Date":return check_FromDate(s,n,r);case"Function":return check_FromFunction(s,n,r);case"Integer":return check_FromInteger(s,n,r);case"Intersect":return check_FromIntersect(s,n,r);case"Iterator":return check_FromIterator(s,n,r);case"Literal":return check_FromLiteral(s,n,r);case"Never":return check_FromNever(s,n,r);case"Not":return check_FromNot(s,n,r);case"Null":return check_FromNull(s,n,r);case"Number":return check_FromNumber(s,n,r);case"Object":return check_FromObject(s,n,r);case"Promise":return check_FromPromise(s,n,r);case"Record":return check_FromRecord(s,n,r);case"Ref":return check_FromRef(s,n,r);case"RegExp":return check_FromRegExp(s,n,r);case"String":return check_FromString(s,n,r);case"Symbol":return check_FromSymbol(s,n,r);case"TemplateLiteral":return check_FromTemplateLiteral(s,n,r);case"This":return check_FromThis(s,n,r);case"Tuple":return check_FromTuple(s,n,r);case"Undefined":return check_FromUndefined(s,n,r);case"Union":return check_FromUnion(s,n,r);case"Uint8Array":return check_FromUint8Array(s,n,r);case"Unknown":return check_FromUnknown(s,n,r);case"Void":return check_FromVoid(s,n,r);default:if(!type_Has(s[y]))throw new ValueCheckUnknownTypeError(s);return check_FromKind(s,n,r)}}function Check(...e){return e.length===3?check_Visit(e[0],e[1],e[2]):check_Visit(e[0],[],e[1])}function clone_ObjectType(e){const t={};for(const r of Object.getOwnPropertyNames(e)){t[r]=clone_Clone(e[r])}for(const r of Object.getOwnPropertySymbols(e)){t[r]=clone_Clone(e[r])}return t}function clone_ArrayType(e){return e.map((e=>clone_Clone(e)))}function TypedArrayType(e){return e.slice()}function clone_DateType(e){return new Date(e.toISOString())}function ValueType(e){return e}function clone_Clone(e){if(IsArray(e))return clone_ArrayType(e);if(IsDate(e))return clone_DateType(e);if(IsStandardObject(e))return clone_ObjectType(e);if(IsTypedArray(e))return TypedArrayType(e);if(IsValueType(e))return ValueType(e);throw new Error("ValueClone: Unable to clone value")}class ValueCreateError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function FromDefault(e){return typeof e==="function"?e:clone_Clone(e)}function create_FromAny(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromArray(e,t){if(e.uniqueItems===true&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the uniqueItems constraint requires a default value")}else if("contains"in e&&!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"Array with the contains constraint requires a default value")}else if("default"in e){return FromDefault(e.default)}else if(e.minItems!==undefined){return Array.from({length:e.minItems}).map((r=>create_Visit(e.items,t)))}else{return[]}}function create_FromAsyncIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return async function*(){}()}}function create_FromBigInt(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return BigInt(0)}}function create_FromBoolean(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return false}}function create_FromConstructor(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=create_Visit(e.returns,t);if(typeof r==="object"&&!Array.isArray(r)){return class{constructor(){for(const[e,t]of Object.entries(r)){const r=this;r[e]=t}}}}else{return class{}}}}function create_FromDate(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimumTimestamp!==undefined){return new Date(e.minimumTimestamp)}else{return new Date}}function create_FromFunction(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return()=>create_Visit(e.returns,t)}}function create_FromInteger(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromIntersect(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=e.allOf.reduce(((e,r)=>{const n=create_Visit(r,t);return typeof n==="object"?{...e,...n}:n}),{});if(!Check(e,t,r))throw new ValueCreateError(e,"Intersect produced invalid value. Consider using a default value.");return r}}function create_FromIterator(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return function*(){}()}}function create_FromLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return e.const}}function create_FromNever(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Never types cannot be created. Consider using a default value.")}}function create_FromNot(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"Not types must have a default value")}}function create_FromNull(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return null}}function create_FromNumber(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minimum!==undefined){return e.minimum}else{return 0}}function create_FromObject(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{const r=new Set(e.required);const n={};for(const[s,o]of Object.entries(e.properties)){if(!r.has(s))continue;n[s]=create_Visit(o,t)}return n}}function create_FromPromise(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return Promise.resolve(create_Visit(e.item,t))}}function create_FromRecord(e,t){const[r,n]=Object.entries(e.patternProperties)[0];if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(!(r===w||r===v)){const e=r.slice(1,r.length-1).split("|");const s={};for(const r of e)s[r]=create_Visit(n,t);return s}else{return{}}}function create_FromRef(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromRegExp(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new ValueCreateError(e,"RegExp types cannot be created. Consider using a default value.")}}function create_FromString(e,t){if(e.pattern!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with patterns must specify a default value")}else{return FromDefault(e.default)}}else if(e.format!==undefined){if(!HasPropertyKey(e,"default")){throw new ValueCreateError(e,"String types with formats must specify a default value")}else{return FromDefault(e.default)}}else{if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minLength!==undefined){return Array.from({length:e.minLength}).map((()=>" ")).join("")}else{return""}}}function create_FromSymbol(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if("value"in e){return Symbol.for(e.value)}else{return Symbol()}}function create_FromTemplateLiteral(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(!IsTemplateLiteralFinite(e))throw new ValueCreateError(e,"Can only create template literals that produce a finite variants. Consider using a default value.");const r=TemplateLiteralGenerate(e);return r[0]}function create_FromThis(e,t){if(H++>V)throw new ValueCreateError(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return create_Visit(deref_Deref(e,t),t)}}function create_FromTuple(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}if(e.items===undefined){return[]}else{return Array.from({length:e.minItems}).map(((r,n)=>create_Visit(e.items[n],t)))}}function create_FromUndefined(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return undefined}}function create_FromUnion(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return create_Visit(e.anyOf[0],t)}}function create_FromUint8Array(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else if(e.minByteLength!==undefined){return new Uint8Array(e.minByteLength)}else{return new Uint8Array(0)}}function create_FromUnknown(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return{}}}function create_FromVoid(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{return void 0}}function create_FromKind(e,t){if(HasPropertyKey(e,"default")){return FromDefault(e.default)}else{throw new Error("User defined types must specify a default value")}}function create_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;switch(n[y]){case"Any":return create_FromAny(n,r);case"Array":return create_FromArray(n,r);case"AsyncIterator":return create_FromAsyncIterator(n,r);case"BigInt":return create_FromBigInt(n,r);case"Boolean":return create_FromBoolean(n,r);case"Constructor":return create_FromConstructor(n,r);case"Date":return create_FromDate(n,r);case"Function":return create_FromFunction(n,r);case"Integer":return create_FromInteger(n,r);case"Intersect":return create_FromIntersect(n,r);case"Iterator":return create_FromIterator(n,r);case"Literal":return create_FromLiteral(n,r);case"Never":return create_FromNever(n,r);case"Not":return create_FromNot(n,r);case"Null":return create_FromNull(n,r);case"Number":return create_FromNumber(n,r);case"Object":return create_FromObject(n,r);case"Promise":return create_FromPromise(n,r);case"Record":return create_FromRecord(n,r);case"Ref":return create_FromRef(n,r);case"RegExp":return create_FromRegExp(n,r);case"String":return create_FromString(n,r);case"Symbol":return create_FromSymbol(n,r);case"TemplateLiteral":return create_FromTemplateLiteral(n,r);case"This":return create_FromThis(n,r);case"Tuple":return create_FromTuple(n,r);case"Undefined":return create_FromUndefined(n,r);case"Union":return create_FromUnion(n,r);case"Uint8Array":return create_FromUint8Array(n,r);case"Unknown":return create_FromUnknown(n,r);case"Void":return create_FromVoid(n,r);default:if(!type_Has(n[y]))throw new ValueCreateError(n,"Unknown type");return create_FromKind(n,r)}}const V=512;let H=0;function create_Create(...e){H=0;return e.length===2?create_Visit(e[0],e[1]):create_Visit(e[0],[])}class ValueCastError extends TypeBoxError{constructor(e,t){super(t);this.schema=e}}function ScoreUnion(e,t,r){if(e[y]==="Object"&&typeof r==="object"&&!IsNull(r)){const n=e;const s=Object.getOwnPropertyNames(r);const o=Object.entries(n.properties);const[i,a]=[1/o.length,o.length];return o.reduce(((e,[n,o])=>{const c=o[y]==="Literal"&&o.const===r[n]?a:0;const u=Check(o,t,r[n])?i:0;const A=s.includes(n)?i:0;return e+(c+u+A)}),0)}else{return Check(e,t,r)?1:0}}function SelectUnion(e,t,r){const n=e.anyOf.map((e=>deref_Deref(e,t)));let[s,o]=[n[0],0];for(const e of n){const n=ScoreUnion(e,t,r);if(n>o){s=e;o=n}}return s}function CastUnion(e,t,r){if("default"in e){return typeof r==="function"?e.default:clone_Clone(e.default)}else{const n=SelectUnion(e,t,r);return Cast(n,t,r)}}function DefaultClone(e,t,r){return Check(e,t,r)?clone_Clone(r):create_Create(e,t)}function Default(e,t,r){return Check(e,t,r)?r:create_Create(e,t)}function cast_FromArray(e,t,r){if(Check(e,t,r))return clone_Clone(r);const n=IsArray(r)?clone_Clone(r):create_Create(e,t);const s=IsNumber(e.minItems)&&n.lengthnull))]:n;const o=IsNumber(e.maxItems)&&s.length>e.maxItems?s.slice(0,e.maxItems):s;const i=o.map((r=>cast_Visit(e.items,t,r)));if(e.uniqueItems!==true)return i;const a=[...new Set(i)];if(!Check(e,t,a))throw new ValueCastError(e,"Array cast produced invalid data due to uniqueItems constraint");return a}function cast_FromConstructor(e,t,r){if(Check(e,t,r))return create_Create(e,t);const n=new Set(e.returns.required||[]);const result=function(){};for(const[s,o]of Object.entries(e.returns.properties)){if(!n.has(s)&&r.prototype[s]===undefined)continue;result.prototype[s]=cast_Visit(o,t,r.prototype[s])}return result}function cast_FromIntersect(e,t,r){const n=create_Create(e,t);const s=IsStandardObject(n)&&IsStandardObject(r)?{...n,...r}:r;return Check(e,t,s)?s:create_Create(e,t)}function cast_FromNever(e,t,r){throw new ValueCastError(e,"Never types cannot be cast")}function cast_FromObject(e,t,r){if(Check(e,t,r))return r;if(r===null||typeof r!=="object")return create_Create(e,t);const n=new Set(e.required||[]);const s={};for(const[o,i]of Object.entries(e.properties)){if(!n.has(o)&&r[o]===undefined)continue;s[o]=cast_Visit(i,t,r[o])}if(typeof e.additionalProperties==="object"){const n=Object.getOwnPropertyNames(e.properties);for(const o of Object.getOwnPropertyNames(r)){if(n.includes(o))continue;s[o]=cast_Visit(e.additionalProperties,t,r[o])}}return s}function cast_FromRecord(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(r===null||typeof r!=="object"||Array.isArray(r)||r instanceof Date)return create_Create(e,t);const n=Object.getOwnPropertyNames(e.patternProperties)[0];const s=e.patternProperties[n];const o={};for(const[e,n]of Object.entries(r)){o[e]=cast_Visit(s,t,n)}return o}function cast_FromRef(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromThis(e,t,r){return cast_Visit(deref_Deref(e,t),t,r)}function cast_FromTuple(e,t,r){if(Check(e,t,r))return clone_Clone(r);if(!IsArray(r))return create_Create(e,t);if(e.items===undefined)return[];return e.items.map(((e,n)=>cast_Visit(e,t,r[n])))}function cast_FromUnion(e,t,r){return Check(e,t,r)?clone_Clone(r):CastUnion(e,t,r)}function cast_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(e[y]){case"Array":return cast_FromArray(s,n,r);case"Constructor":return cast_FromConstructor(s,n,r);case"Intersect":return cast_FromIntersect(s,n,r);case"Never":return cast_FromNever(s,n,r);case"Object":return cast_FromObject(s,n,r);case"Record":return cast_FromRecord(s,n,r);case"Ref":return cast_FromRef(s,n,r);case"This":return cast_FromThis(s,n,r);case"Tuple":return cast_FromTuple(s,n,r);case"Union":return cast_FromUnion(s,n,r);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(e,t,r);default:return Default(s,n,r)}}function Cast(...e){return e.length===3?cast_Visit(e[0],e[1],e[2]):cast_Visit(e[0],[],e[1])}function IsCheckable(e){return type_IsSchema(e)&&e[y]!=="Unsafe"}function clean_FromArray(e,t,r){if(!IsArray(r))return r;return r.map((r=>clean_Visit(e.items,t,r)))}function clean_FromIntersect(e,t,r){const n=e.unevaluatedProperties;const s=e.allOf.map((e=>clean_Visit(e,t,clone_Clone(r))));const o=s.reduce(((e,t)=>IsObject(t)?{...e,...t}:t),{});if(!IsObject(r)||!IsObject(o)||!type_IsSchema(n))return o;const i=KeyOfPropertyKeys(e);for(const e of Object.getOwnPropertyNames(r)){if(i.includes(e))continue;if(Check(n,t,r[e])){o[e]=clean_Visit(n,t,r[e])}}return o}function clean_FromObject(e,t,r){if(!IsObject(r)||IsArray(r))return r;const n=e.additionalProperties;for(const s of Object.getOwnPropertyNames(r)){if(s in e.properties){r[s]=clean_Visit(e.properties[s],t,r[s]);continue}if(type_IsSchema(n)&&Check(n,t,r[s])){r[s]=clean_Visit(n,t,r[s]);continue}delete r[s]}return r}function clean_FromRecord(e,t,r){if(!IsObject(r))return r;const n=e.additionalProperties;const s=Object.getOwnPropertyNames(r);const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of s){if(a.test(e)){r[e]=clean_Visit(i,t,r[e]);continue}if(type_IsSchema(n)&&Check(n,t,r[e])){r[e]=clean_Visit(n,t,r[e]);continue}delete r[e]}return r}function clean_FromRef(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromThis(e,t,r){return clean_Visit(deref_Deref(e,t),t,r)}function clean_FromTuple(e,t,r){if(!IsArray(r))return r;if(IsUndefined(e.items))return[];const n=Math.min(r.length,e.items.length);for(let s=0;sn?r.slice(0,n):r}function clean_FromUnion(e,t,r){for(const n of e.anyOf){if(IsCheckable(n)&&Check(n,t,r)){return clean_Visit(n,t,r)}}return r}function clean_Visit(e,t,r){const n=IsString(e.$id)?[...t,e]:t;const s=e;switch(s[y]){case"Array":return clean_FromArray(s,n,r);case"Intersect":return clean_FromIntersect(s,n,r);case"Object":return clean_FromObject(s,n,r);case"Record":return clean_FromRecord(s,n,r);case"Ref":return clean_FromRef(s,n,r);case"This":return clean_FromThis(s,n,r);case"Tuple":return clean_FromTuple(s,n,r);case"Union":return clean_FromUnion(s,n,r);default:return r}}function Clean(...e){return e.length===3?clean_Visit(e[0],e[1],e[2]):clean_Visit(e[0],[],e[1])}function IsStringNumeric(e){return IsString(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}function IsValueToString(e){return IsBigInt(e)||IsBoolean(e)||IsNumber(e)}function IsValueTrue(e){return e===true||IsNumber(e)&&e===1||IsBigInt(e)&&e===BigInt("1")||IsString(e)&&(e.toLowerCase()==="true"||e==="1")}function IsValueFalse(e){return e===false||IsNumber(e)&&(e===0||Object.is(e,-0))||IsBigInt(e)&&e===BigInt("0")||IsString(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}function IsTimeStringWithTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsTimeStringWithoutTimeZone(e){return IsString(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateTimeStringWithTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}function IsDateTimeStringWithoutTimeZone(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}function IsDateString(e){return IsString(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}function TryConvertLiteralString(e,t){const r=TryConvertString(e);return r===t?r:e}function TryConvertLiteralNumber(e,t){const r=TryConvertNumber(e);return r===t?r:e}function TryConvertLiteralBoolean(e,t){const r=TryConvertBoolean(e);return r===t?r:e}function TryConvertLiteral(e,t){return IsString(e.const)?TryConvertLiteralString(t,e.const):IsNumber(e.const)?TryConvertLiteralNumber(t,e.const):IsBoolean(e.const)?TryConvertLiteralBoolean(t,e.const):clone_Clone(t)}function TryConvertBoolean(e){return IsValueTrue(e)?true:IsValueFalse(e)?false:e}function TryConvertBigInt(e){return IsStringNumeric(e)?BigInt(parseInt(e)):IsNumber(e)?BigInt(e|0):IsValueFalse(e)?BigInt(0):IsValueTrue(e)?BigInt(1):e}function TryConvertString(e){return IsValueToString(e)?e.toString():IsSymbol(e)&&e.description!==undefined?e.description.toString():e}function TryConvertNumber(e){return IsStringNumeric(e)?parseFloat(e):IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertInteger(e){return IsStringNumeric(e)?parseInt(e):IsNumber(e)?e|0:IsValueTrue(e)?1:IsValueFalse(e)?0:e}function TryConvertNull(e){return IsString(e)&&e.toLowerCase()==="null"?null:e}function TryConvertUndefined(e){return IsString(e)&&e==="undefined"?undefined:e}function TryConvertDate(e){return IsDate(e)?e:IsNumber(e)?new Date(e):IsValueTrue(e)?new Date(1):IsValueFalse(e)?new Date(0):IsStringNumeric(e)?new Date(parseInt(e)):IsTimeStringWithoutTimeZone(e)?new Date(`1970-01-01T${e}.000Z`):IsTimeStringWithTimeZone(e)?new Date(`1970-01-01T${e}`):IsDateTimeStringWithoutTimeZone(e)?new Date(`${e}.000Z`):IsDateTimeStringWithTimeZone(e)?new Date(e):IsDateString(e)?new Date(`${e}T00:00:00.000Z`):e}function convert_Default(e){return e}function convert_FromArray(e,t,r){const n=IsArray(r)?r:[r];return n.map((r=>convert_Visit(e.items,t,r)))}function convert_FromBigInt(e,t,r){return TryConvertBigInt(r)}function convert_FromBoolean(e,t,r){return TryConvertBoolean(r)}function convert_FromDate(e,t,r){return TryConvertDate(r)}function convert_FromInteger(e,t,r){return TryConvertInteger(r)}function convert_FromIntersect(e,t,r){return e.allOf.reduce(((e,r)=>convert_Visit(r,t,e)),r)}function convert_FromLiteral(e,t,r){return TryConvertLiteral(e,r)}function convert_FromNull(e,t,r){return TryConvertNull(r)}function convert_FromNumber(e,t,r){return TryConvertNumber(r)}function convert_FromObject(e,t,r){const n=IsObject(r);if(!n)return r;const s={};for(const n of Object.keys(r)){s[n]=HasPropertyKey(e.properties,n)?convert_Visit(e.properties[n],t,r[n]):r[n]}return s}function convert_FromRecord(e,t,r){const n=IsObject(r);if(!n)return r;const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=e.patternProperties[s];const i={};for(const[e,n]of Object.entries(r)){i[e]=convert_Visit(o,t,n)}return i}function convert_FromRef(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromString(e,t,r){return TryConvertString(r)}function convert_FromSymbol(e,t,r){return IsString(r)||IsNumber(r)?Symbol(r):r}function convert_FromThis(e,t,r){return convert_Visit(deref_Deref(e,t),t,r)}function convert_FromTuple(e,t,r){const n=IsArray(r)&&!IsUndefined(e.items);if(!n)return r;return r.map(((r,n)=>n{const s=default_Visit(r,t,n);return IsObject(s)?{...e,...s}:s}),{})}function default_FromObject(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const o=Object.getOwnPropertyNames(e.properties);for(const r of o){if(!IsDefaultSchema(e.properties[r]))continue;n[r]=default_Visit(e.properties[r],t,n[r])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(o.includes(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRecord(e,t,r){const n=ValueOrDefault(e,r);if(!IsObject(n))return n;const s=e.additionalProperties;const[o,i]=Object.entries(e.patternProperties)[0];const a=new RegExp(o);for(const e of Object.getOwnPropertyNames(n)){if(!(a.test(e)&&IsDefaultSchema(i)))continue;n[e]=default_Visit(i,t,n[e])}if(!IsDefaultSchema(s))return n;for(const e of Object.getOwnPropertyNames(n)){if(a.test(e))continue;n[e]=default_Visit(s,t,n[e])}return n}function default_FromRef(e,t,r){return default_Visit(deref_Deref(e,t),t,ValueOrDefault(e,r))}function default_FromThis(e,t,r){return default_Visit(deref_Deref(e,t),t,r)}function default_FromTuple(e,t,r){const n=ValueOrDefault(e,r);if(!IsArray(n)||IsUndefined(e.items))return n;const[s,o]=[e.items,Math.max(e.items.length,n.length)];for(let e=0;e=0;n--){if(n0&&e[0].path===""&&e[0].type==="update"}function IsIdentity(e){return e.length===0}function Patch(e,t){if(IsRootUpdate(t)){return clone_Clone(t[0].value)}if(IsIdentity(t)){return clone_Clone(e)}const r=clone_Clone(e);for(const e of t){switch(e.type){case"insert":{pointer_Set(r,e.path,e.value);break}case"update":{pointer_Set(r,e.path,e.value);break}case"delete":{pointer_Delete(r,e.path);break}}}return r}class ValueMutateError extends TypeBoxError{constructor(e){super(e)}}function mutate_ObjectType(e,t,r,n){if(!IsStandardObject(r)){pointer_Set(e,t,clone_Clone(n))}else{const s=Object.getOwnPropertyNames(r);const o=Object.getOwnPropertyNames(n);for(const e of s){if(!o.includes(e)){delete r[e]}}for(const e of o){if(!s.includes(e)){r[e]=null}}for(const s of o){mutate_Visit(e,`${t}/${s}`,r[s],n[s])}}}function mutate_ArrayType(e,t,r,n){if(!IsArray(r)){pointer_Set(e,t,clone_Clone(n))}else{for(let s=0;sdecode_Visit(e.items,t,`${r}/${s}`,n)))):decode_Default(e,r,n)}function decode_FromIntersect(e,t,r,n){if(!IsStandardObject(n)||IsValueType(n))return decode_Default(e,r,n);const s=KeyOfPropertyEntries(e);const o=s.map((e=>e[0]));const i={...n};for(const[e,n]of s)if(e in i){i[e]=decode_Visit(n,t,`${r}/${e}`,i[e])}if(!type_IsTransform(e.unevaluatedProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.unevaluatedProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromNot(e,t,r,n){return decode_Default(e,r,decode_Visit(e.not,t,r,n))}function decode_FromObject(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=KeyOfPropertyKeys(e);const o={...n};for(const n of s)if(n in o){o[n]=decode_Visit(e.properties[n],t,`${r}/${n}`,o[n])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,o)}const i=Object.getOwnPropertyNames(o);const a=e.additionalProperties;const c={...o};for(const e of i)if(!s.includes(e)){c[e]=decode_Default(a,`${r}/${e}`,c[e])}return decode_Default(e,r,c)}function decode_FromRecord(e,t,r,n){if(!IsStandardObject(n))return decode_Default(e,r,n);const s=Object.getOwnPropertyNames(e.patternProperties)[0];const o=new RegExp(s);const i={...n};for(const a of Object.getOwnPropertyNames(n))if(o.test(a)){i[a]=decode_Visit(e.patternProperties[s],t,`${r}/${a}`,i[a])}if(!type_IsSchema(e.additionalProperties)){return decode_Default(e,r,i)}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.test(e)){u[e]=decode_Default(c,`${r}/${e}`,u[e])}return decode_Default(e,r,u)}function decode_FromRef(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromThis(e,t,r,n){const s=deref_Deref(e,t);return decode_Default(e,r,decode_Visit(s,t,r,n))}function decode_FromTuple(e,t,r,n){return IsArray(n)&&IsArray(e.items)?decode_Default(e,r,e.items.map(((e,s)=>decode_Visit(e,t,`${r}/${s}`,n[s])))):decode_Default(e,r,n)}function decode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=decode_Visit(s,t,r,n);return decode_Default(e,r,o)}return decode_Default(e,r,n)}function decode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return decode_FromArray(o,s,r,n);case"Intersect":return decode_FromIntersect(o,s,r,n);case"Not":return decode_FromNot(o,s,r,n);case"Object":return decode_FromObject(o,s,r,n);case"Record":return decode_FromRecord(o,s,r,n);case"Ref":return decode_FromRef(o,s,r,n);case"Symbol":return decode_Default(o,r,n);case"This":return decode_FromThis(o,s,r,n);case"Tuple":return decode_FromTuple(o,s,r,n);case"Union":return decode_FromUnion(o,s,r,n);default:return decode_Default(o,r,n)}}function TransformDecode(e,t,r){return decode_Visit(e,t,"",r)}class TransformEncodeCheckError extends TypeBoxError{constructor(e,t,r){super(`The encoded value does not match the expected schema`);this.schema=e;this.value=t;this.error=r}}class TransformEncodeError extends TypeBoxError{constructor(e,t,r,n){super(`${n instanceof Error?n.message:"Unknown error"}`);this.schema=e;this.path=t;this.value=r;this.error=n}}function encode_Default(e,t,r){try{return type_IsTransform(e)?e[g].Encode(r):r}catch(n){throw new TransformEncodeError(e,t,r,n)}}function encode_FromArray(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(s)?s.map(((n,s)=>encode_Visit(e.items,t,`${r}/${s}`,n))):s}function encode_FromIntersect(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n)||IsValueType(n))return s;const o=KeyOfPropertyEntries(e);const i=o.map((e=>e[0]));const a={...s};for(const[e,n]of o)if(e in a){a[e]=encode_Visit(n,t,`${r}/${e}`,a[e])}if(!type_IsTransform(e.unevaluatedProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.unevaluatedProperties;const A={...a};for(const e of c)if(!i.includes(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromNot(e,t,r,n){return encode_Default(e.not,r,encode_Default(e,r,n))}function encode_FromObject(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(s))return s;const o=KeyOfPropertyKeys(e);const i={...s};for(const n of o)if(n in i){i[n]=encode_Visit(e.properties[n],t,`${r}/${n}`,i[n])}if(!type_IsSchema(e.additionalProperties)){return i}const a=Object.getOwnPropertyNames(i);const c=e.additionalProperties;const u={...i};for(const e of a)if(!o.includes(e)){u[e]=encode_Default(c,`${r}/${e}`,u[e])}return u}function encode_FromRecord(e,t,r,n){const s=encode_Default(e,r,n);if(!IsStandardObject(n))return s;const o=Object.getOwnPropertyNames(e.patternProperties)[0];const i=new RegExp(o);const a={...s};for(const s of Object.getOwnPropertyNames(n))if(i.test(s)){a[s]=encode_Visit(e.patternProperties[o],t,`${r}/${s}`,a[s])}if(!type_IsSchema(e.additionalProperties)){return encode_Default(e,r,a)}const c=Object.getOwnPropertyNames(a);const u=e.additionalProperties;const A={...a};for(const e of c)if(!i.test(e)){A[e]=encode_Default(u,`${r}/${e}`,A[e])}return A}function encode_FromRef(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromThis(e,t,r,n){const s=deref_Deref(e,t);const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}function encode_FromTuple(e,t,r,n){const s=encode_Default(e,r,n);return IsArray(e.items)?e.items.map(((e,n)=>encode_Visit(e,t,`${r}/${n}`,s[n]))):[]}function encode_FromUnion(e,t,r,n){for(const s of e.anyOf){if(!Check(s,t,n))continue;const o=encode_Visit(s,t,r,n);return encode_Default(e,r,o)}for(const s of e.anyOf){const o=encode_Visit(s,t,r,n);if(!Check(e,t,o))continue;return encode_Default(e,r,o)}return encode_Default(e,r,n)}function encode_Visit(e,t,r,n){const s=typeof e.$id==="string"?[...t,e]:t;const o=e;switch(e[y]){case"Array":return encode_FromArray(o,s,r,n);case"Intersect":return encode_FromIntersect(o,s,r,n);case"Not":return encode_FromNot(o,s,r,n);case"Object":return encode_FromObject(o,s,r,n);case"Record":return encode_FromRecord(o,s,r,n);case"Ref":return encode_FromRef(o,s,r,n);case"This":return encode_FromThis(o,s,r,n);case"Tuple":return encode_FromTuple(o,s,r,n);case"Union":return encode_FromUnion(o,s,r,n);default:return encode_Default(o,r,n)}}function TransformEncode(e,t,r){return encode_Visit(e,t,"",r)}function has_FromArray(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromAsyncIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromConstructor(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromFunction(e,t){return type_IsTransform(e)||has_Visit(e.returns,t)||e.parameters.some((e=>has_Visit(e,t)))}function has_FromIntersect(e,t){return type_IsTransform(e)||type_IsTransform(e.unevaluatedProperties)||e.allOf.some((e=>has_Visit(e,t)))}function has_FromIterator(e,t){return type_IsTransform(e)||has_Visit(e.items,t)}function has_FromNot(e,t){return type_IsTransform(e)||has_Visit(e.not,t)}function has_FromObject(e,t){return type_IsTransform(e)||Object.values(e.properties).some((e=>has_Visit(e,t)))||type_IsSchema(e.additionalProperties)&&has_Visit(e.additionalProperties,t)}function has_FromPromise(e,t){return type_IsTransform(e)||has_Visit(e.item,t)}function has_FromRecord(e,t){const r=Object.getOwnPropertyNames(e.patternProperties)[0];const n=e.patternProperties[r];return type_IsTransform(e)||has_Visit(n,t)||type_IsSchema(e.additionalProperties)&&type_IsTransform(e.additionalProperties)}function has_FromRef(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromThis(e,t){if(type_IsTransform(e))return true;return has_Visit(deref_Deref(e,t),t)}function has_FromTuple(e,t){return type_IsTransform(e)||!IsUndefined(e.items)&&e.items.some((e=>has_Visit(e,t)))}function has_FromUnion(e,t){return type_IsTransform(e)||e.anyOf.some((e=>has_Visit(e,t)))}function has_Visit(e,t){const r=IsString(e.$id)?[...t,e]:t;const n=e;if(e.$id&&$.has(e.$id))return false;if(e.$id)$.add(e.$id);switch(e[y]){case"Array":return has_FromArray(n,r);case"AsyncIterator":return has_FromAsyncIterator(n,r);case"Constructor":return has_FromConstructor(n,r);case"Function":return has_FromFunction(n,r);case"Intersect":return has_FromIntersect(n,r);case"Iterator":return has_FromIterator(n,r);case"Not":return has_FromNot(n,r);case"Object":return has_FromObject(n,r);case"Promise":return has_FromPromise(n,r);case"Record":return has_FromRecord(n,r);case"Ref":return has_FromRef(n,r);case"This":return has_FromThis(n,r);case"Tuple":return has_FromTuple(n,r);case"Union":return has_FromUnion(n,r);default:return type_IsTransform(e)}}const $=new Set;function HasTransform(e,t){$.clear();return has_Visit(e,t)}function equal_ObjectType(e,t){if(!IsStandardObject(t))return false;const r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)];const n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];if(r.length!==n.length)return false;return r.every((r=>Equal(e[r],t[r])))}function equal_DateType(e,t){return IsDate(t)&&e.getTime()===t.getTime()}function equal_ArrayType(e,t){if(!IsArray(t)||e.length!==t.length)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_TypedArrayType(e,t){if(!IsTypedArray(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name)return false;return e.every(((e,r)=>Equal(e,t[r])))}function equal_ValueType(e,t){return e===t}function Equal(e,t){if(IsStandardObject(e))return equal_ObjectType(e,t);if(IsDate(e))return equal_DateType(e,t);if(IsTypedArray(e))return equal_TypedArrayType(e,t);if(IsArray(e))return equal_ArrayType(e,t);if(IsValueType(e))return equal_ValueType(e,t);throw new Error("ValueEquals: Unable to compare value")}function value_Cast(...e){return Cast.apply(Cast,e)}function value_Create(...e){return create_Create.apply(create_Create,e)}function value_Check(...e){return Check.apply(Check,e)}function value_Clean(...e){return Clean.apply(Clean,e)}function value_Convert(...e){return Convert.apply(Convert,e)}function value_Clone(e){return clone_Clone(e)}function Decode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!value_Check(t,r,n))throw new TransformDecodeCheckError(t,n,value_Errors(t,r,n).First());return HasTransform(t,r)?TransformDecode(t,r,n):n}function value_Default(...e){return default_Default.apply(default_Default,e)}function Encode(...e){const[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];const s=HasTransform(t,r)?TransformEncode(t,r,n):n;if(!value_Check(t,r,s))throw new TransformEncodeCheckError(t,s,value_Errors(t,r,s).First());return s}function value_Errors(...e){return Errors.apply(Errors,e)}function value_Equal(e,t){return Equal(e,t)}function value_Diff(e,t){return Diff(e,t)}function value_Hash(e){return Hash(e)}function value_Patch(e,t){return Patch(e,t)}function value_Mutate(e,t){Mutate(e,t)}var parseBody=async(e,t=Object.create(null))=>{const{all:r=false,dot:n=false}=t;const s=e instanceof X?e.raw.headers:e.headers;const o=s.get("Content-Type");if(o!==null&&o.startsWith("multipart/form-data")||o!==null&&o.startsWith("application/x-www-form-urlencoded")){return parseFormData(e,{all:r,dot:n})}return{}};async function parseFormData(e,t){const r=await e.formData();if(r){return convertFormDataToBodyData(r,t)}return{}}function convertFormDataToBodyData(e,t){const r=Object.create(null);e.forEach(((e,n)=>{const s=t.all||n.endsWith("[]");if(!s){r[n]=e}else{handleParsingAllValues(r,n,e)}}));if(t.dot){Object.entries(r).forEach((([e,t])=>{const n=e.includes(".");if(n){handleParsingNestedValues(r,e,t);delete r[e]}}))}return r}var handleParsingAllValues=(e,t,r)=>{if(e[t]!==void 0){if(Array.isArray(e[t])){e[t].push(r)}else{e[t]=[e[t],r]}}else{e[t]=r}};var handleParsingNestedValues=(e,t,r)=>{let n=e;const s=t.split(".");s.forEach(((e,t)=>{if(t===s.length-1){n[e]=r}else{if(!n[e]||typeof n[e]!=="object"||Array.isArray(n[e])||n[e]instanceof File){n[e]=Object.create(null)}n=n[e]}}))};var splitPath=e=>{const t=e.split("/");if(t[0]===""){t.shift()}return t};var splitRoutingPath=e=>{const{groups:t,path:r}=extractGroupsFromPath(e);const n=splitPath(r);return replaceGroupMarks(n,t)};var extractGroupsFromPath=e=>{const t=[];e=e.replace(/\{[^}]+\}/g,((e,r)=>{const n=`@${r}`;t.push([n,e]);return n}));return{groups:t,path:e}};var replaceGroupMarks=(e,t)=>{for(let r=t.length-1;r>=0;r--){const[n]=t[r];for(let s=e.length-1;s>=0;s--){if(e[s].includes(n)){e[s]=e[s].replace(n,t[r][1]);break}}}return e};var W={};var getPattern=e=>{if(e==="*"){return"*"}const t=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(t){if(!W[e]){if(t[2]){W[e]=[e,t[1],new RegExp("^"+t[2]+"$")]}else{W[e]=[e,t[1],true]}}return W[e]}return null};var tryDecodeURI=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(e=>{try{return decodeURI(e)}catch{return e}}))}};var getPath=e=>{const t=e.url;const r=t.indexOf("/",8);let n=r;for(;n{const t=e.indexOf("?",8);return t===-1?"":"?"+e.slice(t+1)};var getPathNoStrict=e=>{const t=getPath(e);return t.length>1&&t[t.length-1]==="/"?t.slice(0,-1):t};var mergePath=(...e)=>{let t="";let r=false;for(let n of e){if(t[t.length-1]==="/"){t=t.slice(0,-1);r=true}if(n[0]!=="/"){n=`/${n}`}if(n==="/"&&r){t=`${t}/`}else if(n!=="/"){t=`${t}${n}`}if(n==="/"&&t===""){t="/"}}return t};var checkOptionalParameter=e=>{if(!e.match(/\:.+\?$/)){return null}const t=e.split("/");const r=[];let n="";t.forEach((e=>{if(e!==""&&!/\:/.test(e)){n+="/"+e}else if(/\:/.test(e)){if(/\?/.test(e)){if(r.length===0&&n===""){r.push("/")}else{r.push(n)}const t=e.replace("?","");n+="/"+t;r.push(n)}else{n+="/"+e}}}));return r.filter(((e,t,r)=>r.indexOf(e)===t))};var _decodeURI=e=>{if(!/[%+]/.test(e)){return e}if(e.indexOf("+")!==-1){e=e.replace(/\+/g," ")}return/%/.test(e)?Z(e):e};var _getQueryParam=(e,t,r)=>{let n;if(!r&&t&&!/[%+]/.test(t)){let r=e.indexOf(`?${t}`,8);if(r===-1){r=e.indexOf(`&${t}`,8)}while(r!==-1){const n=e.charCodeAt(r+t.length+1);if(n===61){const n=r+t.length+2;const s=e.indexOf("&",n);return _decodeURI(e.slice(n,s===-1?void 0:s))}else if(n==38||isNaN(n)){return""}r=e.indexOf(`&${t}`,r+1)}n=/[%+]/.test(e);if(!n){return void 0}}const s={};n??=/[%+]/.test(e);let o=e.indexOf("?",8);while(o!==-1){const t=e.indexOf("&",o+1);let i=e.indexOf("=",o);if(i>t&&t!==-1){i=-1}let a=e.slice(o+1,i===-1?t===-1?void 0:t:i);if(n){a=_decodeURI(a)}o=t;if(a===""){continue}let c;if(i===-1){c=""}else{c=e.slice(i+1,t===-1?void 0:t);if(n){c=_decodeURI(c)}}if(r){if(!(s[a]&&Array.isArray(s[a]))){s[a]=[]}s[a].push(c)}else{s[a]??=c}}return t?s[t]:s};var z=_getQueryParam;var getQueryParams=(e,t)=>_getQueryParam(e,t,true);var Z=decodeURIComponent;var X=class{raw;#h;#m;routeIndex=0;path;bodyCache={};constructor(e,t="/",r=[[]]){this.raw=e;this.path=t;this.#m=r;this.#h={}}param(e){return e?this.getDecodedParam(e):this.getAllDecodedParams()}getDecodedParam(e){const t=this.#m[0][this.routeIndex][1][e];const r=this.getParamValue(t);return r?/\%/.test(r)?Z(r):r:void 0}getAllDecodedParams(){const e={};const t=Object.keys(this.#m[0][this.routeIndex][1]);for(const r of t){const t=this.getParamValue(this.#m[0][this.routeIndex][1][r]);if(t&&typeof t==="string"){e[r]=/\%/.test(t)?Z(t):t}}return e}getParamValue(e){return this.#m[1]?this.#m[1][e]:e}query(e){return z(this.url,e)}queries(e){return getQueryParams(this.url,e)}header(e){if(e){return this.raw.headers.get(e.toLowerCase())??void 0}const t={};this.raw.headers.forEach(((e,r)=>{t[r]=e}));return t}async parseBody(e){return this.bodyCache.parsedBody??=await parseBody(this,e)}cachedBody=e=>{const{bodyCache:t,raw:r}=this;const n=t[e];if(n){return n}const s=Object.keys(t)[0];if(s){return t[s].then((t=>{if(s==="json"){t=JSON.stringify(t)}return new Response(t)[e]()}))}return t[e]=r[e]()};json(){return this.cachedBody("json")}text(){return this.cachedBody("text")}arrayBuffer(){return this.cachedBody("arrayBuffer")}blob(){return this.cachedBody("blob")}formData(){return this.cachedBody("formData")}addValidatedData(e,t){this.#h[e]=t}valid(e){return this.#h[e]}get url(){return this.raw.url}get method(){return this.raw.method}get matchedRoutes(){return this.#m[0].map((([[,e]])=>e))}get routePath(){return this.#m[0].map((([[,e]])=>e))[this.routeIndex].path}};var ee={Stringify:1,BeforeStream:2,Stream:3};var raw=(e,t)=>{const r=new String(e);r.isEscaped=true;r.callbacks=t;return r};var te=/[&<>'"]/;var stringBufferToString=async e=>{let t="";const r=[];for(let n=e.length-1;;n--){t+=e[n];n--;if(n<0){break}let s=await e[n];if(typeof s==="object"){r.push(...s.callbacks||[])}const o=s.isEscaped;s=await(typeof s==="object"?s.toString():s);if(typeof s==="object"){r.push(...s.callbacks||[])}if(s.isEscaped??o){t+=s}else{const e=[t];escapeToBuffer(s,e);t=e[0]}}return raw(t,r)};var escapeToBuffer=(e,t)=>{const r=e.search(te);if(r===-1){t[0]+=e;return}let n;let s;let o=0;for(s=r;s{const o=e.callbacks;if(!o?.length){return Promise.resolve(e)}if(s){s[0]+=e}else{s=[e]}const i=Promise.all(o.map((e=>e({phase:t,buffer:s,context:n})))).then((e=>Promise.all(e.filter(Boolean).map((e=>resolveCallback(e,t,false,n,s)))).then((()=>s[0]))));if(r){return raw(await i,o)}else{return i}};var re="text/plain; charset=UTF-8";var setHeaders=(e,t={})=>{Object.entries(t).forEach((([t,r])=>e.set(t,r)));return e};var ne=class{#E;#y;env={};#I;finalized=false;error;#C=200;#b;#B;#Q;#T;#v=true;#w;#_;#O;#m;#k;constructor(e,t){this.#E=e;if(t){this.#b=t.executionCtx;this.env=t.env;this.#O=t.notFoundHandler;this.#k=t.path;this.#m=t.matchResult}}get req(){this.#y??=new X(this.#E,this.#k,this.#m);return this.#y}get event(){if(this.#b&&"respondWith"in this.#b){return this.#b}else{throw Error("This context has no FetchEvent")}}get executionCtx(){if(this.#b){return this.#b}else{throw Error("This context has no ExecutionContext")}}get res(){this.#v=false;return this.#T||=new Response("404 Not Found",{status:404})}set res(e){this.#v=false;if(this.#T&&e){this.#T.headers.delete("content-type");for(const[t,r]of this.#T.headers.entries()){if(t==="set-cookie"){const t=this.#T.headers.getSetCookie();e.headers.delete("set-cookie");for(const r of t){e.headers.append("set-cookie",r)}}else{e.headers.set(t,r)}}}this.#T=e;this.finalized=true}render=(...e)=>{this.#_??=e=>this.html(e);return this.#_(...e)};setLayout=e=>this.#w=e;getLayout=()=>this.#w;setRenderer=e=>{this.#_=e};header=(e,t,r)=>{if(t===void 0){if(this.#B){this.#B.delete(e)}else if(this.#Q){delete this.#Q[e.toLocaleLowerCase()]}if(this.finalized){this.res.headers.delete(e)}return}if(r?.append){if(!this.#B){this.#v=false;this.#B=new Headers(this.#Q);this.#Q={}}this.#B.append(e,t)}else{if(this.#B){this.#B.set(e,t)}else{this.#Q??={};this.#Q[e.toLowerCase()]=t}}if(this.finalized){if(r?.append){this.res.headers.append(e,t)}else{this.res.headers.set(e,t)}}};status=e=>{this.#v=false;this.#C=e};set=(e,t)=>{this.#I??={};this.#I[e]=t};get=e=>this.#I?this.#I[e]:void 0;get var(){return{...this.#I}}newResponse=(e,t,r)=>{if(this.#v&&!r&&!t&&this.#C===200){return new Response(e,{headers:this.#Q})}if(t&&typeof t!=="number"){const r=new Headers(t.headers);if(this.#B){this.#B.forEach(((e,t)=>{if(t==="set-cookie"){r.append(t,e)}else{r.set(t,e)}}))}const n=setHeaders(r,this.#Q);return new Response(e,{headers:n,status:t.status??this.#C})}const n=typeof t==="number"?t:this.#C;this.#Q??={};this.#B??=new Headers;setHeaders(this.#B,this.#Q);if(this.#T){this.#T.headers.forEach(((e,t)=>{if(t==="set-cookie"){this.#B?.append(t,e)}else{this.#B?.set(t,e)}}));setHeaders(this.#B,this.#Q)}r??={};for(const[e,t]of Object.entries(r)){if(typeof t==="string"){this.#B.set(e,t)}else{this.#B.delete(e);for(const r of t){this.#B.append(e,r)}}}return new Response(e,{status:n,headers:this.#B})};body=(e,t,r)=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t);text=(e,t,r)=>{if(!this.#Q){if(this.#v&&!r&&!t){return new Response(e)}this.#Q={}}this.#Q["content-type"]=re;return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};json=(e,t,r)=>{const n=JSON.stringify(e);this.#Q??={};this.#Q["content-type"]="application/json; charset=UTF-8";return typeof t==="number"?this.newResponse(n,t,r):this.newResponse(n,t)};html=(e,t,r)=>{this.#Q??={};this.#Q["content-type"]="text/html; charset=UTF-8";if(typeof e==="object"){if(!(e instanceof Promise)){e=e.toString()}if(e instanceof Promise){return e.then((e=>resolveCallback(e,ee.Stringify,false,{}))).then((e=>typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)))}}return typeof t==="number"?this.newResponse(e,t,r):this.newResponse(e,t)};redirect=(e,t)=>{this.#B??=new Headers;this.#B.set("Location",e);return this.newResponse(null,t??302)};notFound=()=>{this.#O??=()=>new Response;return this.#O(this)}};var compose=(e,t,r)=>(n,s)=>{let o=-1;return dispatch(0);async function dispatch(i){if(i<=o){throw new Error("next() called multiple times")}o=i;let a;let c=false;let u;if(e[i]){u=e[i][0][0];if(n instanceof ne){n.req.routeIndex=i}}else{u=i===e.length&&s||void 0}if(!u){if(n instanceof ne&&n.finalized===false&&r){a=await r(n)}}else{try{a=await u(n,(()=>dispatch(i+1)))}catch(e){if(e instanceof Error&&n instanceof ne&&t){n.error=e;a=await t(e,n);c=true}else{throw e}}}if(a&&(n.finalized===false||c)){n.res=a}return n}};var se="ALL";var oe="all";var ie=["get","post","put","delete","options","patch"];var ae="Can not add a route since the matcher is already built.";var ce=class extends Error{};var ue=Symbol("composedHandler");var notFoundHandler=e=>e.text("404 Not Found",404);var errorHandler=(e,t)=>{if("getResponse"in e){return e.getResponse()}console.error(e);return t.text("Internal Server Error",500)};var Ae=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#k="/";routes=[];constructor(e={}){const t=[...ie,oe];t.forEach((e=>{this[e]=(t,...r)=>{if(typeof t==="string"){this.#k=t}else{this.addRoute(e,this.#k,t)}r.forEach((t=>{if(typeof t!=="string"){this.addRoute(e,this.#k,t)}}));return this}}));this.on=(e,t,...r)=>{for(const n of[t].flat()){this.#k=n;for(const t of[e].flat()){r.map((e=>{this.addRoute(t.toUpperCase(),this.#k,e)}))}}return this};this.use=(e,...t)=>{if(typeof e==="string"){this.#k=e}else{this.#k="*";t.unshift(e)}t.forEach((e=>{this.addRoute(se,this.#k,e)}));return this};const r=e.strict??true;delete e.strict;Object.assign(this,e);this.getPath=r?e.getPath??getPath:getPathNoStrict}clone(){const e=new Ae({router:this.router,getPath:this.getPath});e.routes=this.routes;return e}notFoundHandler=notFoundHandler;errorHandler=errorHandler;route(e,t){const r=this.basePath(e);t.routes.map((e=>{let n;if(t.errorHandler===errorHandler){n=e.handler}else{n=async(r,n)=>(await compose([],t.errorHandler)(r,(()=>e.handler(r,n)))).res;n[ue]=e.handler}r.addRoute(e.method,e.path,n)}));return this}basePath(e){const t=this.clone();t._basePath=mergePath(this._basePath,e);return t}onError=e=>{this.errorHandler=e;return this};notFound=e=>{this.notFoundHandler=e;return this};mount(e,t,r){let n;let s;if(r){if(typeof r==="function"){s=r}else{s=r.optionHandler;n=r.replaceRequest}}const o=s?e=>{const t=s(e);return Array.isArray(t)?t:[t]}:e=>{let t=void 0;try{t=e.executionCtx}catch{}return[e.env,t]};n||=(()=>{const t=mergePath(this._basePath,e);const r=t==="/"?0:t.length;return e=>{const t=new URL(e.url);t.pathname=t.pathname.slice(r)||"/";return new Request(t,e)}})();const handler=async(e,r)=>{const s=await t(n(e.req.raw),...o(e));if(s){return s}await r()};this.addRoute(se,mergePath(e,"*"),handler);return this}addRoute(e,t,r){e=e.toUpperCase();t=mergePath(this._basePath,t);const n={path:t,method:e,handler:r};this.router.add(e,t,[r,n]);this.routes.push(n)}matchRoute(e,t){return this.router.match(e,t)}handleError(e,t){if(e instanceof Error){return this.errorHandler(e,t)}throw e}dispatch(e,t,r,n){if(n==="HEAD"){return(async()=>new Response(null,await this.dispatch(e,t,r,"GET")))()}const s=this.getPath(e,{env:r});const o=this.matchRoute(n,s);const i=new ne(e,{path:s,matchResult:o,env:r,executionCtx:t,notFoundHandler:this.notFoundHandler});if(o[0].length===1){let e;try{e=o[0][0][0][0](i,(async()=>{i.res=await this.notFoundHandler(i)}))}catch(e){return this.handleError(e,i)}return e instanceof Promise?e.then((e=>e||(i.finalized?i.res:this.notFoundHandler(i)))).catch((e=>this.handleError(e,i))):e??this.notFoundHandler(i)}const a=compose(o[0],this.errorHandler,this.notFoundHandler);return(async()=>{try{const e=await a(i);if(!e.finalized){throw new Error("Context is not finalized. Did you forget to return a Response object or `await next()`?")}return e.res}catch(e){return this.handleError(e,i)}})()}fetch=(e,...t)=>this.dispatch(e,t[1],t[0],e.method);request=(e,t,r,n)=>{if(e instanceof Request){if(t!==void 0){e=new Request(e,t)}return this.fetch(e,r,n)}e=e.toString();const s=/^https?:\/\//.test(e)?e:`http://localhost${mergePath("/",e)}`;const o=new Request(s,t);return this.fetch(o,r,n)};fire=()=>{addEventListener("fetch",(e=>{e.respondWith(this.dispatch(e.request,e,void 0,e.request.method))}))}};var le="[^/]+";var de=".*";var pe="(?:|/.*)";var fe=Symbol();var ge=new Set(".\\+*[^]$()");function compareKey(e,t){if(e.length===1){return t.length===1?ee!==de&&e!==pe))){throw fe}if(s){return}c=this.children[t]=new he;if(e!==""){c.varIndex=n.varIndex++}}if(!s&&e!==""){r.push([e,c.varIndex])}}else{c=this.children[o];if(!c){if(Object.keys(this.children).some((e=>e.length>1&&e!==de&&e!==pe))){throw fe}if(s){return}c=this.children[o]=new he}}c.insert(i,t,r,n,s)}buildRegExpStr(){const e=Object.keys(this.children).sort(compareKey);const t=e.map((e=>{const t=this.children[e];return(typeof t.varIndex==="number"?`(${e})@${t.varIndex}`:ge.has(e)?`\\${e}`:e)+t.buildRegExpStr()}));if(typeof this.index==="number"){t.unshift(`#${this.index}`)}if(t.length===0){return""}if(t.length===1){return t[0]}return"(?:"+t.join("|")+")"}};var me=class{context={varIndex:0};root=new he;insert(e,t,r){const n=[];const s=[];for(let t=0;;){let r=false;e=e.replace(/\{[^}]+\}/g,(e=>{const n=`@\\${t}`;s[t]=[n,e];t++;r=true;return n}));if(!r){break}}const o=e.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let e=s.length-1;e>=0;e--){const[t]=s[e];for(let r=o.length-1;r>=0;r--){if(o[r].indexOf(t)!==-1){o[r]=o[r].replace(t,s[e][1]);break}}}this.root.insert(o,t,n,this.context,r);return n}buildRegExp(){let e=this.root.buildRegExpStr();if(e===""){return[/^$/,[],[]]}let t=0;const r=[];const n=[];e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,((e,s,o)=>{if(typeof s!=="undefined"){r[++t]=Number(s);return"$()"}if(typeof o!=="undefined"){n[Number(o)]=++t;return""}return""}));return[new RegExp(`^${e}`),r,n]}};var Ee=[];var ye=[/^$/,[],Object.create(null)];var Ie=Object.create(null);function buildWildcardRegExp(e){return Ie[e]??=new RegExp(e==="*"?"":`^${e.replace(/\/\*$|([.\\+*[^\]$()])/g,((e,t)=>t?`\\${t}`:"(?:|/.*)"))}$`)}function clearWildcardRegExpCache(){Ie=Object.create(null)}function buildMatcherFromPreprocessedRoutes(e){const t=new me;const r=[];if(e.length===0){return ye}const n=e.map((e=>[!/\*|\/:/.test(e[0]),...e])).sort((([e,t],[r,n])=>e?1:r?-1:t.length-n.length));const s=Object.create(null);for(let e=0,o=-1,i=n.length;e[e,Object.create(null)])),Ee]}else{o++}let u;try{u=t.insert(a,o,i)}catch(e){throw e===fe?new ce(a):e}if(i){continue}r[o]=c.map((([e,t])=>{const r=Object.create(null);t-=1;for(;t>=0;t--){const[e,n]=u[t];r[e]=n}return[e,r]}))}const[o,i,a]=t.buildRegExp();for(let e=0,t=r.length;et.length-e.length))){if(buildWildcardRegExp(r).test(t)){return[...e[r]]}}return void 0}var Ce=class{name="RegExpRouter";middleware;routes;constructor(){this.middleware={[se]:Object.create(null)};this.routes={[se]:Object.create(null)}}add(e,t,r){const{middleware:n,routes:s}=this;if(!n||!s){throw new Error(ae)}if(!n[e]){[n,s].forEach((t=>{t[e]=Object.create(null);Object.keys(t[se]).forEach((r=>{t[e][r]=[...t[se][r]]}))}))}if(t==="/*"){t="*"}const o=(t.match(/\/:/g)||[]).length;if(/\*$/.test(t)){const i=buildWildcardRegExp(t);if(e===se){Object.keys(n).forEach((e=>{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}))}else{n[e][t]||=findMiddleware(n[e],t)||findMiddleware(n[se],t)||[]}Object.keys(n).forEach((t=>{if(e===se||e===t){Object.keys(n[t]).forEach((e=>{i.test(e)&&n[t][e].push([r,o])}))}}));Object.keys(s).forEach((t=>{if(e===se||e===t){Object.keys(s[t]).forEach((e=>i.test(e)&&s[t][e].push([r,o])))}}));return}const i=checkOptionalParameter(t)||[t];for(let t=0,a=i.length;t{if(e===se||e===i){s[i][c]||=[...findMiddleware(n[i],c)||findMiddleware(n[se],c)||[]];s[i][c].push([r,o-a+t+1])}}))}}match(e,t){clearWildcardRegExpCache();const r=this.buildAllMatchers();this.match=(e,t)=>{const n=r[e]||r[se];const s=n[2][t];if(s){return s}const o=t.match(n[0]);if(!o){return[[],Ee]}const i=o.indexOf("",1);return[n[1][i],o]};return this.match(e,t)}buildAllMatchers(){const e=Object.create(null);[...Object.keys(this.routes),...Object.keys(this.middleware)].forEach((t=>{e[t]||=this.buildMatcher(t)}));this.middleware=this.routes=void 0;return e}buildMatcher(e){const t=[];let r=e===se;[this.middleware,this.routes].forEach((n=>{const s=n[e]?Object.keys(n[e]).map((t=>[t,n[e][t]])):[];if(s.length!==0){r||=true;t.push(...s)}else if(e!==se){t.push(...Object.keys(n[se]).map((e=>[e,n[se][e]])))}}));if(!r){return null}else{return buildMatcherFromPreprocessedRoutes(t)}}};var be=class{name="SmartRouter";routers=[];routes=[];constructor(e){Object.assign(this,e)}add(e,t,r){if(!this.routes){throw new Error(ae)}this.routes.push([e,t,r])}match(e,t){if(!this.routes){throw new Error("Fatal error")}const{routers:r,routes:n}=this;const s=r.length;let o=0;let i;for(;o{s.add(...e)}));i=s.match(e,t)}catch(e){if(e instanceof ce){continue}throw e}this.match=s.match.bind(s);this.routers=[s];this.routes=void 0;break}if(o===s){throw new Error("Fatal error")}this.name=`SmartRouter + ${this.activeRouter.name}`;return i}get activeRouter(){if(this.routes||this.routers.length!==1){throw new Error("No active router has been determined yet.")}return this.routers[0]}};var Be=class{methods;children;patterns;order=0;name;params=Object.create(null);constructor(e,t,r){this.children=r||Object.create(null);this.methods=[];this.name="";if(e&&t){const r=Object.create(null);r[e]={handler:t,possibleKeys:[],score:0,name:this.name};this.methods=[r]}this.patterns=[]}insert(e,t,r){this.name=`${e} ${t}`;this.order=++this.order;let n=this;const s=splitRoutingPath(t);const o=[];for(let e=0,t=s.length;er.indexOf(e)===t)),name:this.name,score:this.order};i[e]=a;n.methods.push(i);return n}gHSets(e,t,r,n){const s=[];for(let o=0,i=e.methods.length;o{const t=c[a.name];a.params[e]=n[e]&&!t?n[e]:r[e]??n[e];c[a.name]=true}));s.push(a)}}return s}search(e,t){const r=[];this.params=Object.create(null);const n=this;let s=[n];const o=splitPath(t);for(let t=0,n=o.length;te.score-t.score));return[i.map((({handler:e,params:t})=>[e,t]))]}};var Qe=class{name="TrieRouter";node;constructor(){this.node=new Be}add(e,t,r){const n=checkOptionalParameter(t);if(n){for(const t of n){this.node.insert(e,t,r)}return}this.node.insert(e,t,r)}match(e,t){return this.node.search(e,t)}};var Te=class extends Ae{constructor(e={}){super(e);this.router=e.router??new be({routers:[new Ce,new Qe]})}};var ve=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause});this.res=t?.res;this.status=e}getResponse(){if(this.res){const e=new Response(this.res.body,{status:this.status,headers:this.res.headers});return e}return new Response(this.message,{status:this.status})}};var we=__nccwpck_require__(38815);function awaited_FromRest(e){return e.map((e=>AwaitedResolve(e)))}function awaited_FromIntersect(e){return intersect_Intersect(awaited_FromRest(e))}function awaited_FromUnion(e){return union_Union(awaited_FromRest(e))}function awaited_FromPromise(e){return AwaitedResolve(e)}function AwaitedResolve(e){return IsIntersect(e)?awaited_FromIntersect(e.allOf):IsUnion(e)?awaited_FromUnion(e.anyOf):kind_IsPromise(e)?awaited_FromPromise(e.item):e}function awaited_Awaited(e,t={}){return CloneType(AwaitedResolve(e),t)}function CompositeKeys(e){const t=[];for(const r of e)t.push(...KeyOfPropertyKeys(r));return SetDistinct(t)}function FilterNever(e){return e.filter((e=>!IsNever(e)))}function CompositeProperty(e,t){const r=[];for(const n of e)r.push(...IndexFromPropertyKeys(n,[t]));return FilterNever(r)}function CompositeProperties(e,t){const r={};for(const n of t){r[n]=IntersectEvaluated(CompositeProperty(e,n))}return r}function composite_Composite(e,t={}){const r=CompositeKeys(e);const n=CompositeProperties(e,r);const s=O(n,t);return s}function date_Date(e={}){return{...e,[y]:"Date",type:"Date"}}function null_Null(e={}){return{...e,[y]:"Null",type:"null"}}function symbol_Symbol(e){return{...e,[y]:"Symbol",type:"symbol"}}function undefined_Undefined(e={}){return{...e,[y]:"Undefined",type:"undefined"}}function uint8array_Uint8Array(e={}){return{...e,[y]:"Uint8Array",type:"Uint8Array"}}function const_FromArray(e){return e.map((e=>FromValue(e,false)))}function const_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=readonly_Readonly(FromValue(e[r],false));return t}function ConditionalReadonly(e,t){return t===true?e:readonly_Readonly(e)}function FromValue(e,t){return value_IsAsyncIterator(e)?ConditionalReadonly(any_Any(),t):value_IsIterator(e)?ConditionalReadonly(any_Any(),t):value_IsArray(e)?readonly_Readonly(tuple_Tuple(const_FromArray(e))):value_IsUint8Array(e)?uint8array_Uint8Array():value_IsDate(e)?date_Date():value_IsObject(e)?ConditionalReadonly(O(const_FromProperties(e)),t):value_IsFunction(e)?ConditionalReadonly(function_Function([],unknown_Unknown()),t):value_IsUndefined(e)?undefined_Undefined():value_IsNull(e)?null_Null():value_IsSymbol(e)?symbol_Symbol():value_IsBigInt(e)?bigint_BigInt():value_IsNumber(e)?literal_Literal(e):value_IsBoolean(e)?literal_Literal(e):value_IsString(e)?literal_Literal(e):O({})}function const_Const(e,t={}){return CloneType(FromValue(e,true),t)}function constructor_parameters_ConstructorParameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function deref_FromRest(e,t){return e.map((e=>deref_deref_Deref(e,t)))}function deref_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e)){r[n]=deref_deref_Deref(e[n],t)}return r}function deref_FromConstructor(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromFunction(e,t){e.parameters=deref_FromRest(e.parameters,t);e.returns=deref_deref_Deref(e.returns,t);return e}function deref_FromIntersect(e,t){e.allOf=deref_FromRest(e.allOf,t);return e}function deref_FromUnion(e,t){e.anyOf=deref_FromRest(e.anyOf,t);return e}function deref_FromTuple(e,t){if(value_IsUndefined(e.items))return e;e.items=deref_FromRest(e.items,t);return e}function deref_FromArray(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromObject(e,t){e.properties=deref_FromProperties(e.properties,t);return e}function deref_FromPromise(e,t){e.item=deref_deref_Deref(e.item,t);return e}function deref_FromAsyncIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromIterator(e,t){e.items=deref_deref_Deref(e.items,t);return e}function deref_FromRef(e,t){const r=t.find((t=>t.$id===e.$ref));if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=Discard(r,["$id"]);return deref_deref_Deref(n,t)}function DerefResolve(e,t){return IsConstructor(e)?deref_FromConstructor(e,t):kind_IsFunction(e)?deref_FromFunction(e,t):IsIntersect(e)?deref_FromIntersect(e,t):IsUnion(e)?deref_FromUnion(e,t):IsTuple(e)?deref_FromTuple(e,t):kind_IsArray(e)?deref_FromArray(e,t):kind_IsObject(e)?deref_FromObject(e,t):kind_IsPromise(e)?deref_FromPromise(e,t):kind_IsAsyncIterator(e)?deref_FromAsyncIterator(e,t):kind_IsIterator(e)?deref_FromIterator(e,t):IsRef(e)?deref_FromRef(e,t):e}function deref_deref_Deref(e,t){return DerefResolve(CloneType(e),CloneRest(t))}function enum_Enum(e,t={}){if(value_IsUndefined(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter((e=>isNaN(e))).map((t=>e[t]));const n=[...new Set(r)];const s=n.map((e=>literal_Literal(e)));return union_Union(s,{...t,[E]:"Enum"})}function ExcludeFromTemplateLiteral(e,t){return exclude_Exclude(TemplateLiteralToUnion(e),t)}function ExcludeRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)===j.False));return r.length===1?r[0]:union_Union(r)}function exclude_Exclude(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExcludeFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExcludeFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExcludeRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?never_Never():e,r)}function exclude_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=exclude_Exclude(e[n],t);return r}function exclude_from_mapped_result_FromMappedResult(e,t){return exclude_from_mapped_result_FromProperties(e.properties,t)}function ExcludeFromMappedResult(e,t){const r=exclude_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function ExtractFromTemplateLiteral(e,t){return extract_Extract(TemplateLiteralToUnion(e),t)}function ExtractRest(e,t){const r=e.filter((e=>ExtendsCheck(e,t)!==j.False));return r.length===1?r[0]:union_Union(r)}function extract_Extract(e,t,r={}){if(IsTemplateLiteral(e))return CloneType(ExtractFromTemplateLiteral(e,t),r);if(IsMappedResult(e))return CloneType(ExtractFromMappedResult(e,t),r);return CloneType(IsUnion(e)?ExtractRest(e.anyOf,t):ExtendsCheck(e,t)!==j.False?e:never_Never(),r)}function extract_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=extract_Extract(e[n],t);return r}function extract_from_mapped_result_FromMappedResult(e,t){return extract_from_mapped_result_FromProperties(e.properties,t)}function ExtractFromMappedResult(e,t){const r=extract_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function integer_Integer(e={}){return{...e,[y]:"Integer",type:"integer"}}function MappedIntrinsicPropertyKey(e,t,r){return{[e]:Intrinsic(literal_Literal(e),t,r)}}function MappedIntrinsicPropertyKeys(e,t,r){return e.reduce(((e,n)=>({...e,...MappedIntrinsicPropertyKey(n,t,r)})),{})}function MappedIntrinsicProperties(e,t,r){return MappedIntrinsicPropertyKeys(e["keys"],t,r)}function IntrinsicFromMappedKey(e,t,r){const n=MappedIntrinsicProperties(e,t,r);return MappedResult(n)}function ApplyUncapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function ApplyCapitalize(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function ApplyUppercase(e){return e.toUpperCase()}function ApplyLowercase(e){return e.toLowerCase()}function intrinsic_FromTemplateLiteral(e,t,r){const n=TemplateLiteralParseExact(e.pattern);const s=IsTemplateLiteralExpressionFinite(n);if(!s)return{...e,pattern:FromLiteralValue(e.pattern,t)};const o=[...TemplateLiteralExpressionGenerate(n)];const i=o.map((e=>literal_Literal(e)));const a=intrinsic_FromRest(i,t);const c=union_Union(a);return template_literal_TemplateLiteral([c],r)}function FromLiteralValue(e,t){return typeof e==="string"?t==="Uncapitalize"?ApplyUncapitalize(e):t==="Capitalize"?ApplyCapitalize(e):t==="Uppercase"?ApplyUppercase(e):t==="Lowercase"?ApplyLowercase(e):e:e.toString()}function intrinsic_FromRest(e,t){return e.map((e=>Intrinsic(e,t)))}function Intrinsic(e,t,r={}){return IsMappedKey(e)?IntrinsicFromMappedKey(e,t,r):IsTemplateLiteral(e)?intrinsic_FromTemplateLiteral(e,t,e):IsUnion(e)?union_Union(intrinsic_FromRest(e.anyOf,t),r):IsLiteral(e)?literal_Literal(FromLiteralValue(e.const,t),r):e}function capitalize_Capitalize(e,t={}){return Intrinsic(e,"Capitalize",t)}function lowercase_Lowercase(e,t={}){return Intrinsic(e,"Lowercase",t)}function uncapitalize_Uncapitalize(e,t={}){return Intrinsic(e,"Uncapitalize",t)}function uppercase_Uppercase(e,t={}){return Intrinsic(e,"Uppercase",t)}function not_Not(e,t){return{...t,[y]:"Not",not:CloneType(e)}}function omit_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=omit_Omit(e[s],t,r);return n}function omit_from_mapped_result_FromMappedResult(e,t,r){return omit_from_mapped_result_FromProperties(e.properties,t,r)}function OmitFromMappedResult(e,t,r){const n=omit_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function omit_FromIntersect(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromUnion(e,t){return e.map((e=>OmitResolve(e,t)))}function omit_FromProperty(e,t){const{[t]:r,...n}=e;return n}function omit_FromProperties(e,t){return t.reduce(((e,t)=>omit_FromProperty(e,t)),e)}function OmitResolve(e,t){return IsIntersect(e)?intersect_Intersect(omit_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(omit_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(omit_FromProperties(e.properties,t)):O({})}function omit_Omit(e,t,r={}){if(IsMappedKey(t))return OmitFromMappedKey(e,t,r);if(IsMappedResult(e))return OmitFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(OmitResolve(e,n),r);return{...s,...o}}function omit_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:omit_Omit(e,[t],r)}}function omit_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...omit_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function omit_from_mapped_key_FromMappedKey(e,t,r){return omit_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function OmitFromMappedKey(e,t,r){const n=omit_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function parameters_Parameters(e,t={}){return tuple_Tuple(CloneRest(e.parameters),{...t})}function partial_FromRest(e){return e.map((e=>PartialResolve(e)))}function partial_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=optional_Optional(e[r]);return t}function PartialResolve(e){return IsIntersect(e)?intersect_Intersect(partial_FromRest(e.allOf)):IsUnion(e)?union_Union(partial_FromRest(e.anyOf)):kind_IsObject(e)?O(partial_FromProperties(e.properties)):O({})}function partial_Partial(e,t={}){if(IsMappedResult(e))return PartialFromMappedResult(e,t);const r=Discard(e,[g,"$id","required"]);const n=CloneType(PartialResolve(e),t);return{...r,...n}}function partial_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=partial_Partial(e[n],t);return r}function partial_from_mapped_result_FromMappedResult(e,t){return partial_from_mapped_result_FromProperties(e.properties,t)}function PartialFromMappedResult(e,t){const r=partial_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function pick_from_mapped_result_FromProperties(e,t,r){const n={};for(const s of globalThis.Object.getOwnPropertyNames(e))n[s]=pick_Pick(e[s],t,r);return n}function pick_from_mapped_result_FromMappedResult(e,t,r){return pick_from_mapped_result_FromProperties(e.properties,t,r)}function PickFromMappedResult(e,t,r){const n=pick_from_mapped_result_FromMappedResult(e,t,r);return MappedResult(n)}function pick_FromIntersect(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromUnion(e,t){return e.map((e=>PickResolve(e,t)))}function pick_FromProperties(e,t){const r={};for(const n of t)if(n in e)r[n]=e[n];return r}function PickResolve(e,t){return IsIntersect(e)?intersect_Intersect(pick_FromIntersect(e.allOf,t)):IsUnion(e)?union_Union(pick_FromUnion(e.anyOf,t)):kind_IsObject(e)?O(pick_FromProperties(e.properties,t)):O({})}function pick_Pick(e,t,r={}){if(IsMappedKey(t))return PickFromMappedKey(e,t,r);if(IsMappedResult(e))return PickFromMappedResult(e,t,r);const n=IsSchema(t)?IndexPropertyKeys(t):t;const s=Discard(e,[g,"$id","required"]);const o=CloneType(PickResolve(e,n),r);return{...s,...o}}function pick_from_mapped_key_FromPropertyKey(e,t,r){return{[t]:pick_Pick(e,[t],r)}}function pick_from_mapped_key_FromPropertyKeys(e,t,r){return t.reduce(((t,n)=>({...t,...pick_from_mapped_key_FromPropertyKey(e,n,r)})),{})}function pick_from_mapped_key_FromMappedKey(e,t,r){return pick_from_mapped_key_FromPropertyKeys(e,t.keys,r)}function PickFromMappedKey(e,t,r){const n=pick_from_mapped_key_FromMappedKey(e,t,r);return MappedResult(n)}function readonly_optional_ReadonlyOptional(e){return readonly_Readonly(optional_Optional(e))}function RecordCreateFromPattern(e,t,r){return{...r,[y]:"Record",type:"object",patternProperties:{[e]:CloneType(t)}}}function RecordCreateFromKeys(e,t,r){const n={};for(const r of e)n[r]=CloneType(t);return O(n,{...r,[E]:"Record"})}function FromTemplateLiteralKey(e,t,r){return IsTemplateLiteralFinite(e)?RecordCreateFromKeys(IndexPropertyKeys(e),t,r):RecordCreateFromPattern(e.pattern,t,r)}function FromUnionKey(e,t,r){return RecordCreateFromKeys(IndexPropertyKeys(union_Union(e)),t,r)}function FromLiteralKey(e,t,r){return RecordCreateFromKeys([e.toString()],t,r)}function FromRegExpKey(e,t,r){return RecordCreateFromPattern(e.source,t,r)}function FromStringKey(e,t,r){const n=value_IsUndefined(e.pattern)?w:e.pattern;return RecordCreateFromPattern(n,t,r)}function FromAnyKey(e,t,r){return RecordCreateFromPattern(w,t,r)}function FromNeverKey(e,t,r){return RecordCreateFromPattern(_,t,r)}function FromIntegerKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function FromNumberKey(e,t,r){return RecordCreateFromPattern(v,t,r)}function record_Record(e,t,r={}){return IsUnion(e)?FromUnionKey(e.anyOf,t,r):IsTemplateLiteral(e)?FromTemplateLiteralKey(e,t,r):IsLiteral(e)?FromLiteralKey(e.const,t,r):kind_IsInteger(e)?FromIntegerKey(e,t,r):kind_IsNumber(e)?FromNumberKey(e,t,r):kind_IsRegExp(e)?FromRegExpKey(e,t,r):kind_IsString(e)?FromStringKey(e,t,r):IsAny(e)?FromAnyKey(e,t,r):IsNever(e)?FromNeverKey(e,t,r):never_Never(r)}let _e=0;function recursive_Recursive(e,t={}){if(value_IsUndefined(t.$id))t.$id=`T${_e++}`;const r=e({[y]:"This",$ref:`${t.$id}`});r.$id=t.$id;return CloneType({...t,[E]:"Recursive",...r})}function ref_Ref(e,t={}){if(value_IsString(e))return{...t,[y]:"Ref",$ref:e};if(value_IsUndefined(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[y]:"Ref",$ref:e.$id}}function regexp_RegExp(e,t={}){const r=value_IsString(e)?new globalThis.RegExp(e):e;return{...t,[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function required_FromRest(e){return e.map((e=>RequiredResolve(e)))}function required_FromProperties(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=Discard(e[r],[m]);return t}function RequiredResolve(e){return IsIntersect(e)?intersect_Intersect(required_FromRest(e.allOf)):IsUnion(e)?union_Union(required_FromRest(e.anyOf)):kind_IsObject(e)?O(required_FromProperties(e.properties)):O({})}function required_Required(e,t={}){if(IsMappedResult(e)){return RequiredFromMappedResult(e,t)}else{const r=Discard(e,[g,"$id","required"]);const n=CloneType(RequiredResolve(e),t);return{...r,...n}}}function required_from_mapped_result_FromProperties(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=required_Required(e[n],t);return r}function required_from_mapped_result_FromMappedResult(e,t){return required_from_mapped_result_FromProperties(e.properties,t)}function RequiredFromMappedResult(e,t){const r=required_from_mapped_result_FromMappedResult(e,t);return MappedResult(r)}function RestResolve(e){return IsIntersect(e)?CloneRest(e.allOf):IsUnion(e)?CloneRest(e.anyOf):IsTuple(e)?CloneRest(e.items??[]):[]}function rest_Rest(e){return CloneRest(RestResolve(e))}class TransformDecodeBuilder{constructor(e){this.schema=e}Decode(e){return new TransformEncodeBuilder(this.schema,e)}}class TransformEncodeBuilder{constructor(e,t){this.schema=e;this.decode=t}EncodeTransform(e,t){const Encode=r=>t[g].Encode(e(r));const Decode=e=>this.decode(t[g].Decode(e));const r={Encode:Encode,Decode:Decode};return{...t,[g]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[g]:r}}Encode(e){const t=CloneType(this.schema);return IsTransform(t)?this.EncodeTransform(e,t):this.EncodeSchema(e,t)}}function transform_Transform(e){return new TransformDecodeBuilder(e)}function void_Void(e={}){return{...e,[y]:"Void",type:"void"}}class json_JsonTypeBuilder{Strict(e){return Strict(e)}ReadonlyOptional(e){return ReadonlyOptional(e)}Readonly(e,t){return Readonly(e,t??true)}Optional(e,t){return Optional(e,t??true)}Any(e={}){return Any(e)}Array(e,t={}){return Array(e,t)}Boolean(e={}){return Boolean(e)}Capitalize(e,t={}){return Capitalize(e,t)}Composite(e,t){return Composite(e,t)}Const(e,t={}){return Const(e,t)}Deref(e,t){return Deref(e,t)}Enum(e,t={}){return Enum(e,t)}Exclude(e,t,r={}){return Exclude(e,t,r)}Extends(e,t,r,n,s={}){return Extends(e,t,r,n,s)}Extract(e,t,r={}){return Extract(e,t,r)}Index(e,t,r={}){return Index(e,t,r)}Integer(e={}){return Integer(e)}Intersect(e,t={}){return Intersect(e,t)}KeyOf(e,t={}){return KeyOf(e,t)}Literal(e,t={}){return Literal(e,t)}Lowercase(e,t={}){return Lowercase(e,t)}Mapped(e,t,r={}){return Mapped(e,t,r)}Never(e={}){return Never(e)}Not(e,t){return Not(e,t)}Null(e={}){return Null(e)}Number(e={}){return Number(e)}Object(e,t={}){return Object(e,t)}Omit(e,t,r={}){return Omit(e,t,r)}Partial(e,t={}){return Partial(e,t)}Pick(e,t,r={}){return Pick(e,t,r)}Record(e,t,r={}){return Record(e,t,r)}Recursive(e,t={}){return Recursive(e,t)}Ref(e,t={}){return Ref(e,t)}Required(e,t={}){return Required(e,t)}Rest(e){return Rest(e)}String(e={}){return String(e)}TemplateLiteral(e,t={}){return TemplateLiteral(e,t)}Transform(e){return Transform(e)}Tuple(e,t={}){return Tuple(e,t)}Uncapitalize(e,t={}){return Uncapitalize(e,t)}Union(e,t={}){return Union(e,t)}Unknown(e={}){return Unknown(e)}Unsafe(e={}){return Unsafe(e)}Uppercase(e,t={}){return Uppercase(e,t)}}function instance_type_InstanceType(e,t={}){return CloneType(e.returns,t)}function return_type_ReturnType(e,t={}){return CloneType(e.returns,t)}function strict_Strict(e){return JSON.parse(JSON.stringify(e))}class JavaScriptTypeBuilder extends(null&&JsonTypeBuilder){AsyncIterator(e,t={}){return AsyncIterator(e,t)}Awaited(e,t={}){return Awaited(e,t)}BigInt(e={}){return BigInt(e)}ConstructorParameters(e,t={}){return ConstructorParameters(e,t)}Constructor(e,t,r){return Constructor(e,t,r)}Date(e={}){return Date(e)}Function(e,t,r){return FunctionType(e,t,r)}InstanceType(e,t={}){return InstanceType(e,t)}Iterator(e,t={}){return Iterator(e,t)}Parameters(e,t={}){return Parameters(e,t)}Promise(e,t={}){return Promise(e,t)}RegExp(e,t={}){return RegExp(e,t)}ReturnType(e,t={}){return ReturnType(e,t)}Symbol(e){return Symbol(e)}Undefined(e={}){return Undefined(e)}Uint8Array(e={}){return Uint8Array(e)}Void(e={}){return Void(e)}}const Oe=s;var ke=__nccwpck_require__(80619);var createLogger=e=>({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console),...e});var Re=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.revoked","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function handleEventHandlers(e,t,r){if(!e.hooks[t]){e.hooks[t]=[]}e.hooks[t].push(r)}function receiverOn(e,t,r){if(Array.isArray(t)){t.forEach((t=>receiverOn(e,t,r)));return}if(["*","error"].includes(t)){const e=t==="*"?"any":t;const r=`Using the "${t}" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.on${e.charAt(0).toUpperCase()+e.slice(1)}() method instead`;throw new Error(r)}if(!Re.includes(t)){e.log.warn(`"${t}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}handleEventHandlers(e,t,r)}function receiverOnAny(e,t){handleEventHandlers(e,"*",t)}function receiverOnError(e,t){handleEventHandlers(e,"error",t)}function wrapErrorHandler(e,t){let r;try{r=e(t)}catch(e){console.log('FATAL: Error occurred in "error" event handler');console.log(e)}if(r&&r.catch){r.catch((e=>{console.log('FATAL: Error occurred in "error" event handler');console.log(e)}))}}function getHooks(e,t,r){const n=[e.hooks[r],e.hooks["*"]];if(t){n.unshift(e.hooks[`${r}.${t}`])}return[].concat(...n.filter(Boolean))}function receiverHandle(e,t){const r=e.hooks.error||[];if(t instanceof Error){const e=Object.assign(new AggregateError([t],t.message),{event:t});r.forEach((t=>wrapErrorHandler(t,e)));return Promise.reject(e)}if(!t||!t.name){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}if(!t.payload){const e=new Error("Event name not passed");throw new AggregateError([e],e.message)}const n=getHooks(e,"action"in t.payload?t.payload.action:null,t.name);if(n.length===0){return Promise.resolve()}const s=[];const o=n.map((r=>{let n=Promise.resolve(t);if(e.transform){n=n.then(e.transform)}return n.then((e=>r(e))).catch((e=>s.push(Object.assign(e,{event:t}))))}));return Promise.all(o).then((()=>{if(s.length===0){return}const e=new AggregateError(s,s.map((e=>e.message)).join("\n"));Object.assign(e,{event:t});r.forEach((t=>wrapErrorHandler(t,e)));throw e}))}function removeListener(e,t,r){if(Array.isArray(t)){t.forEach((t=>removeListener(e,t,r)));return}if(!e.hooks[t]){return}for(let n=e.hooks[t].length-1;n>=0;n--){if(e.hooks[t][n]===r){e.hooks[t].splice(n,1);return}}}function createEventHandler(e){const t={hooks:{},log:createLogger(e&&e.log)};if(e&&e.transform){t.transform=e.transform}return{on:receiverOn.bind(null,t),onAny:receiverOnAny.bind(null,t),onError:receiverOnError.bind(null,t),removeListener:removeListener.bind(null,t),receive:receiverHandle.bind(null,t)}}async function verifyAndReceive(e,t){const r=await verify(e.secret,t.payload,t.signature).catch((()=>false));if(!r){const r=new Error("[@octokit/webhooks] signature does not match event payload and secret");return e.eventHandler.receive(Object.assign(r,{event:t,status:400}))}let n;try{n=JSON.parse(t.payload)}catch(e){e.message="Invalid JSON";e.status=400;throw new AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var Se=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function getMissingHeaders(e){return Se.filter((t=>!(t in e.headers)))}function getPayload(e){if(typeof e.body==="object"&&"rawBody"in e&&e.rawBody instanceof Buffer){return Promise.resolve(e.rawBody.toString("utf8"))}else if(typeof e.body==="string"){return Promise.resolve(e.body)}return new Promise(((t,r)=>{let n=[];e.on("error",(e=>r(new AggregateError([e],e.message))));e.on("data",(e=>n.push(e)));e.on("end",(()=>setImmediate(t,n.length===1?n[0].toString("utf8"):Buffer.concat(n).toString("utf8"))))}))}function onUnhandledRequestDefault(e,t){t.writeHead(404,{"content-type":"application/json"});t.end(JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`}))}async function middleware(e,t,r,n,s){let o;try{o=new URL(r.url,"http://localhost").pathname}catch(e){n.writeHead(422,{"content-type":"application/json"});n.end(JSON.stringify({error:`Request URL could not be parsed: ${r.url}`}));return true}if(o!==t.path){s?.();return false}else if(r.method!=="POST"){onUnhandledRequestDefault(r,n);return true}if(!r.headers["content-type"]||!r.headers["content-type"].startsWith("application/json")){n.writeHead(415,{"content-type":"application/json",accept:"application/json"});n.end(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}));return true}const i=getMissingHeaders(r).join(", ");if(i){n.writeHead(400,{"content-type":"application/json"});n.end(JSON.stringify({error:`Required headers missing: ${i}`}));return true}const a=r.headers["x-github-event"];const c=r.headers["x-hub-signature-256"];const u=r.headers["x-github-delivery"];t.log.debug(`${a} event received (id: ${u})`);let A=false;const l=setTimeout((()=>{A=true;n.statusCode=202;n.end("still processing\n")}),9e3).unref();try{const t=await getPayload(r);await e.verifyAndReceive({id:u,name:a,payload:t,signature:c});clearTimeout(l);if(A)return true;n.end("ok\n");return true}catch(e){clearTimeout(l);if(A)return true;const r=Array.from(e.errors)[0];const s=r.message?`${r.name}: ${r.message}`:"Error: An Unspecified error occurred";n.statusCode=typeof r.status!=="undefined"?r.status:500;t.log.error(e);n.end(JSON.stringify({error:s}));return true}}function createNodeMiddleware(e,{path:t="/api/github/webhooks",log:r=createLogger()}={}){return middleware.bind(null,e,{path:t,log:r})}var Fe=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret){throw new Error("[@octokit/webhooks] options.secret required")}const t={eventHandler:createEventHandler(e),secret:e.secret,hooks:{},log:createLogger(e.log)};this.sign=sign.bind(null,e.secret);this.verify=verify2.bind(null,e.secret);this.on=t.eventHandler.on;this.onAny=t.eventHandler.onAny;this.onError=t.eventHandler.onError;this.removeListener=t.eventHandler.removeListener;this.receive=t.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,t)}};function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(((t,r)=>register.bind(null,e,r,t,n)),r)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return r(n)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),r)()}))}function addHook(e,t,r,n){const s=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=(e,t)=>Promise.resolve().then(s.bind(null,t)).then(e.bind(null,t))}if(t==="after"){n=(e,t)=>{let r;return Promise.resolve().then(e.bind(null,t)).then((e=>{r=e;return s(r,t)})).then((()=>r))}}if(t==="error"){n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>s(e,t)))}e.registry[r].push({hook:n,orig:s})}function removeHook(e,t,r){if(!e.registry[t]){return}const n=e.registry[t].map((e=>e.orig)).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}const De=Function.bind;const Ne=De.bind(De);function bindApi(e,t,r){const n=Ne(removeHook,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((n=>{const s=r?[t,n,r]:[t,n];e[n]=e.api[n]=Ne(addHook,null).apply(null,s)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const r=register.bind(null,t,e);bindApi(r,t,e);return r}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const Pe={Singular:Singular,Collection:Collection};var Le="0.0.0-development";var Ue=`octokit-endpoint.js/${Le} ${getUserAgent()}`;var Me={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ue},mediaType:{format:""}};function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((n=>{if(isPlainObject(t[n])){if(!(n in e))Object.assign(r,{[n]:t[n]});else r[n]=mergeDeep(e[n],t[n])}else{Object.assign(r,{[n]:t[n]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(r.url==="/graphql"){if(e&&e.mediaType.previews?.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var xe=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(xe);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const r={__proto__:null};for(const n of Object.keys(e)){if(t.indexOf(n)===-1){r[n]=e[n]}}return r}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var s=e[r],o=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}o.push(encodeValue(t,s,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){o.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){o.push(encodeValue(t,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(s).forEach((function(r){if(isDefined(s[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,s[r].toString()))}}))}if(isKeyOperator(t)){o.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){o.push(e.join(","))}}}}else{if(t===";"){if(isDefined(s)){o.push(encodeUnreserved(r))}}else if(s===""&&(t==="&"||t==="?")){o.push(encodeUnreserved(r)+"=")}else if(s===""){o.push("")}}return o}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);s.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var o=",";if(e==="?"){o="&"}else if(e!=="#"){o=e}return(s.length!==0?e:"")+s.join(o)}else{return s.join(",")}}else{return encodeReserved(s)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let o=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const i=extractUrlVariableNames(r);r=parseUrl(r).expand(o);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter((e=>i.includes(e))).concat("baseUrl");const c=omit(o,a);const u=/application\/octet-stream/i.test(n.accept);if(!u){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(r.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){s=c.data}else{if(Object.keys(c).length){s=c}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof s==="undefined"){s=""}return Object.assign({method:t,url:r,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}var Ge=withDefaults(null,Me);class RequestError extends Error{name;status;request;response;constructor(e,t,r){super(e);this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var je="0.0.0-development";var Ve={headers:{"user-agent":`octokit-request.js/${je} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body;const o=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let i;try{i=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:o,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=i.status;const c=i.url;const u={};for(const[e,t]of i.headers){u[e]=t}const A={url:c,status:a,headers:u,data:""};if("deprecation"in u){const t=u.link&&u.link.match(/<([^>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return A}if(e.method==="HEAD"){if(a<400){return A}throw new RequestError(i.statusText,a,{response:A,request:e})}if(a===304){A.data=await getResponseData(i);throw new RequestError("Not modified",a,{response:A,request:e})}if(a>=400){A.data=await getResponseData(i);throw new RequestError(toErrorMessage(A.data),a,{response:A,request:e})}A.data=n?await getResponseData(i):i.body;return A}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json().catch((()=>e.text())).catch((()=>""))}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return e.arrayBuffer()}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var He=dist_bundle_withDefaults(Ge,Ve);var qe="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var Ye=class extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Ke=["method","baseUrl","url","headers","request","query","mediaType"];var Je=["query","method","url"];var $e=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!Je.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const s=Object.keys(n).reduce(((e,t)=>{if(Ke.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const o=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if($e.test(o)){s.url=o.replace($e,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new Ye(s,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,r),endpoint:r.endpoint})}var We=graphql_dist_bundle_withDefaults(He,{headers:{"user-agent":`octokit-graphql.js/${qe} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var ze=/^v1\./;var Ze=/^ghs_/;var Xe=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const r=ze.test(e)||Ze.test(e);const n=Xe.test(e);const s=t?"app":r?"installation":n?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const s=t.endpoint.merge(r,n);s.headers.authorization=withAuthorizationPrefix(e);return t(s)}var et=function createTokenAuth2(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const tt="6.1.2";const noop=()=>{};const rt=console.warn.bind(console);const nt=console.error.bind(console);const st=`octokit-core.js/${tt} ${getUserAgent()}`;class Octokit{static VERSION=tt;static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const r=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return r}constructor(e={}){const t=new Pe.Collection;const r={baseUrl:He.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=e.userAgent?`${e.userAgent} ${st}`:st;if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=He.defaults(r);this.graphql=withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:noop,info:noop,warn:rt,error:nt},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=et(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r,...n}=e;const s=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",s.hook);this.auth=s}const n=this.constructor;for(let t=0;t({async next(){if(!a)return{done:true};try{const e=await s({method:o,url:a,headers:i});const t=normalizePaginatedListResponse(e);a=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;a="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=void 0}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((s=>{if(s.done){return t}let o=false;function done(){o=true}t=t.concat(n?n(s.value,done):s.value.data);if(o){return t}return gather(e,t,r,n)}))}var it=Object.assign(paginate,{iterator:iterator});var at=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/copilot/usage","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/usage","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/team/{team_slug}/copilot/usage","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return at.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=ot;const ct="13.2.4";const ut={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var At=ut;const lt=new Map;for(const[e,t]of Object.entries(At)){for(const[r,n]of Object.entries(t)){const[t,s,o]=n;const[i,a]=t.split(/ /);const c=Object.assign({method:i,url:a},s);if(!lt.has(e)){lt.set(e,new Map)}lt.get(e).set(r,{scope:e,methodName:r,endpointDefaults:c,decorations:o})}}const dt={has({scope:e},t){return lt.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,r){Object.defineProperty(e.cache,t,r);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...lt.get(e).keys()]},set(e,t,r){return e.cache[t]=r},get({octokit:e,scope:t,cache:r},n){if(r[n]){return r[n]}const s=lt.get(t).get(n);if(!s){return void 0}const{endpointDefaults:o,decorations:i}=s;if(i){r[n]=decorate(e,t,n,o,i)}else{r[n]=e.request.defaults(o)}return r[n]}};function endpointsToMethods(e){const t={};for(const r of lt.keys()){t[r]=new Proxy({octokit:e,scope:r,cache:{}},dt)}return t}function decorate(e,t,r,n,s){const o=e.request.defaults(n);function withDecorations(...n){let i=o.endpoint.merge(...n);if(s.mapToData){i=Object.assign({},i,{data:i[s.mapToData],[s.mapToData]:void 0});return o(i)}if(s.renamed){const[n,o]=s.renamed;e.log.warn(`octokit.${t}.${r}() has been renamed to octokit.${n}.${o}()`)}if(s.deprecated){e.log.warn(s.deprecated)}if(s.renamedParameters){const i=o.endpoint.merge(...n);for(const[n,o]of Object.entries(s.renamedParameters)){if(n in i){e.log.warn(`"${n}" parameter is deprecated for "octokit.${t}.${r}()". Use "${o}" instead`);if(!(o in i)){i[o]=i[n]}delete i[n]}}return o(i)}return o(...n)}return Object.assign(withDecorations,o)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=ct;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=ct;var pt=__nccwpck_require__(63251);async function errorRequest(e,t,r,n){if(!r.request||!r.request.request){throw r}if(r.status>=400&&!e.doNotRetry.includes(r.status)){const s=n.request.retries!=null?n.request.retries:e.retries;const o=Math.pow((n.request.retryCount||0)+1,2);throw t.retry.retryRequest(r,s,o)}throw r}async function wrapRequest(e,t,r,n){const s=new pt;s.on("failed",(function(t,r){const s=~~t.request.request.retries;const o=~~t.request.request.retryAfter;n.request.retryCount=r.retryCount+1;if(s>r.retryCount){return o*e.retryAfterBaseValue}}));return s.schedule(requestWithGraphqlErrorHandling.bind(null,e,t,r),n)}async function requestWithGraphqlErrorHandling(e,t,r,n){const s=await r(r,n);if(s.data&&s.data.errors&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){const r=new RequestError(s.data.errors[0].message,500,{request:n,response:s});return errorRequest(e,t,r,n)}return s}var ft="0.0.0-development";function retry(e,t){const r=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},t.retry);if(r.enabled){e.hook.error("request",errorRequest.bind(null,r,e));e.hook.wrap("request",wrapRequest.bind(null,r,e))}return{retry:{retryRequest:(e,t,r)=>{e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:r});return e}}}}retry.VERSION=ft;var gt="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(e,t,r){return e.retryLimiter.schedule(doRequest,e,t,r)}async function doRequest(e,t,r){const n=r.method!=="GET"&&r.method!=="HEAD";const{pathname:s}=new URL(r.url,"http://github.test");const o=r.method==="GET"&&s.startsWith("/search/");const i=s.startsWith("/graphql");const a=~~t.retryCount;const c=a>0?{priority:0,weight:0}:{};if(e.clustering){c.expiration=1e3*60}if(n||i){await e.write.key(e.id).schedule(c,dist_bundle_noop)}if(n&&e.triggersNotification(s)){await e.notifications.key(e.id).schedule(c,dist_bundle_noop)}if(o){await e.search.key(e.id).schedule(c,dist_bundle_noop)}const u=e.global.key(e.id).schedule(c,t,r);if(i){const e=await u;if(e.data.errors!=null&&e.data.errors.some((e=>e.type==="RATE_LIMITED"))){const t=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:e,data:e.data});throw t}}return u}var ht=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/")));const r=`^(?:${t.map((e=>`(?:${e})`)).join("|")})[^/]*$`;return new RegExp(r,"i")}var mt=routeMatcher(ht);var Et=mt.test.bind(mt);var yt={};var createGroups=function(e,t){yt.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t});yt.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t});yt.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t});yt.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function throttling(e,t){const{enabled:r=true,Bottleneck:n=pt,id:s="no-id",timeout:o=1e3*60*2,connection:i}=t.throttle||{};if(!r){return{}}const a={connection:i,timeout:o};if(yt.global==null){createGroups(n,a)}const c=Object.assign({clustering:i!=null,triggersNotification:Et,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new n,id:s,...yt},t.throttle);if(typeof c.onSecondaryRateLimit!=="function"||typeof c.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const u={};const A=new n.Events(u);u.on("secondary-limit",c.onSecondaryRateLimit);u.on("rate-limit",c.onRateLimit);u.on("error",(t=>e.log.warn("Error in throttling-plugin limit handler",t)));c.retryLimiter.on("failed",(async function(t,r){const[n,s,o]=r.args;const{pathname:i}=new URL(o.url,"http://github.test");const a=i.startsWith("/graphql")&&t.status!==401;if(!(a||t.status===403)){return}const c=~~s.retryCount;s.retryCount=c;o.request.retryCount=c;const{wantRetry:u,retryAfter:l=0}=await async function(){if(/\bsecondary rate\b/i.test(t.message)){const r=Number(t.response.headers["retry-after"])||n.fallbackSecondaryRateRetryAfter;const s=await A.trigger("secondary-limit",r,o,e,c);return{wantRetry:s,retryAfter:r}}if(t.response.headers!=null&&t.response.headers["x-ratelimit-remaining"]==="0"||(t.response.data?.errors??[]).some((e=>e.type==="RATE_LIMITED"))){const r=new Date(~~t.response.headers["x-ratelimit-reset"]*1e3).getTime();const n=Math.max(Math.ceil((r-Date.now())/1e3)+1,0);const s=await A.trigger("rate-limit",n,o,e,c);return{wantRetry:s,retryAfter:n}}return{}}();if(u){s.retryCount++;return l*n.retryAfterBaseValue}}));e.hook.wrap("request",dist_bundle_wrapRequest.bind(null,c));return{}}throttling.VERSION=gt;throttling.triggersNotification=Et;var It=__nccwpck_require__(37484);var Ct=__nccwpck_require__(93228);var bt=__nccwpck_require__(18889);function jsonString(){return Oe.Transform(Oe.String()).Decode((e=>JSON.parse(e))).Encode((e=>JSON.stringify(e)))}var Bt=Oe.Object({state_id:Oe.String(),output:jsonString()});var Qt=new RegExp("^([0-9a-zA-Z-._]+)\\/([0-9a-zA-Z-._]+)(?::([0-9a-zA-Z-._]+))?(?:@([0-9a-zA-Z-._]+(?:\\/[0-9a-zA-Z-._]+)*))?$");var Tt=/^https?:\/\/\S+?$/;function githubPluginType(){return Oe.Transform(Oe.String()).Decode((e=>{if(Tt.test(e)){return e}const t=e.match(Qt);if(!t){throw new Error(`Invalid plugin name: ${e}`)}return{owner:t[1],repo:t[2],workflowId:t[3]||"compute.yml",ref:t[4]||void 0}})).Encode((e=>{if(typeof e==="string"){return e}return`${e.owner}/${e.repo}${e.workflowId?":"+e.workflowId:""}${e.ref?"@"+e.ref:""}`}))}function stringLiteralUnion(e){const t=e.map((e=>Oe.Literal(e)));return Oe.Union(t)}var vt=stringLiteralUnion(Re);var wt=Oe.Array(Oe.Object({id:Oe.Optional(Oe.String()),plugin:githubPluginType(),with:Oe.Record(Oe.String(),Oe.Unknown(),{default:{}}),runsOn:Oe.Array(vt,{default:[]})}),{minItems:1,default:[]});var _t=Oe.Array(Oe.Object({name:Oe.Optional(Oe.String()),uses:wt,skipBotEvents:Oe.Boolean({default:true})}),{default:[]});var Ot=Oe.Object({plugins:_t},{additionalProperties:false});var kt=new ke.StandardValidator(Ot);var Rt=Oe.Union(Re.map((e=>Oe.Literal(e))));var St=Oe.Object({description:Oe.String({minLength:1}),"ubiquity:example":Oe.String({minLength:1})});var Ft=Oe.Object({name:Oe.String({minLength:1}),description:Oe.Optional(Oe.String({default:""})),commands:Oe.Optional(Oe.Record(Oe.String(),St,{default:{}})),"ubiquity:listeners":Oe.Optional(Oe.Array(Rt,{default:[]})),configuration:Oe.Optional(Oe.Record(Oe.String(),Oe.Any(),{default:{}}))});var Dt=new ke.StandardValidator(Ft);var Nt=".github/.ubiquity-os.config.yml";var Pt=".github/.ubiquity-os.config.dev.yml";var Lt=".ubiquity-os";var Ut=`-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo1AYSyrXTEjMj2USno6i\n5dv9Da386RI/zGypmkWa1KrIspE/Yd8RPaaEVAwt7p6+YeGcOQVLruuk11fJxff1\nxB+KGbk1+kIdQ7s70B7yVRZuIM/k5aGfPpeerm0wjt4dKcYTRrl/OjLOMRrZ3vCX\nE96v6eHEOpZIJ9VnjzGA0xymc+kBuEmZKabuK16S9a7I+CkZC8unqXWi15Chlyw8\nEmbquwSmXI8VJ4teUjsF/H1MhJK3WTfsdr8bDsooRTMVKVBL8jONpGPzJZtr39zY\ndkRj2Je2kag9b3FMxskv1npNSrPVcSc5lGNYlnZnfxIAnCknOC118JjitlrpT6wd\n8wIDAQAB\n-----END PUBLIC KEY-----\n`;var Mt=975031;var xt=178941584;var Gt={throttle:{onAbuseLimit:(e,t,r)=>{r.log.warn(`Abuse limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onRateLimit:(e,t,r)=>{r.log.warn(`Rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true},onSecondaryRateLimit:(e,t,r)=>{r.log.warn(`Secondary rate limit hit with "${t.method} ${t.url}", retrying in ${e} seconds.`);return true}}};var jt=Octokit.plugin(throttling,retry,paginateRest,restEndpointMethods).defaults((e=>Object.assign({},Gt,e)));async function verifySignature(e,t,r){try{const n={stateId:t.stateId,eventName:t.eventName,eventPayload:t.eventPayload,settings:t.settings,authToken:t.authToken,ref:t.ref};console.log(JSON.stringify(t));const s=e.replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").trim();const o=Uint8Array.from(atob(s),(e=>e.charCodeAt(0)));const i=await crypto.subtle.importKey("spki",o,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},true,["verify"]);const a=Uint8Array.from(atob(r),(e=>e.charCodeAt(0)));const c=(new TextEncoder).encode(JSON.stringify(n));return await crypto.subtle.verify("RSASSA-PKCS1-v1_5",i,a,c)}catch(e){console.error(e);return false}}function sanitizeMetadata(e){return JSON.stringify(e,null,2).replace(//g,">").replace(/--/g,"--")}var Vt=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.Record(Oe.String(),Oe.Any()),authToken:Oe.String(),settings:Oe.Record(Oe.String(),Oe.Any()),ref:Oe.String(),signature:Oe.String()});function createPlugin(e,t,r){const n={kernelPublicKey:r?.kernelPublicKey||Ut,logLevel:r?.logLevel||LOG_LEVEL.INFO,postCommentOnError:r?.postCommentOnError||true,settingsSchema:r?.settingsSchema,envSchema:r?.envSchema};const s=new Hono;s.get("/manifest.json",(e=>e.json(t)));s.post("/",(async t=>{if(t.req.header("content-type")!=="application/json"){throw new HTTPException(400,{message:"Content-Type must be application/json"})}const r=Value3.Decode(Vt,await t.req.json());const s=r.signature;if(!await verifySignature(n.kernelPublicKey,r,s)){throw new HTTPException(400,{message:"Invalid signature"})}let o;if(n.settingsSchema){o=Value3.Decode(n.settingsSchema,Value3.Default(n.settingsSchema,r.settings))}else{o=r.settings}let i;if(n.envSchema){i=Value3.Decode(n.envSchema,Value3.Default(n.envSchema,t.env))}else{i=t.env}const a={eventName:r.eventName,payload:r.eventPayload,octokit:new jt({auth:r.authToken}),config:o,env:i,logger:new Logs(n.logLevel)};try{const n=await e(a);return t.json({stateId:r.stateId,output:n})}catch(e){console.error(e);let t;if(e instanceof Error){t=a.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof LogReturn){t=e}else{t=a.logger.error(`Error: ${e}`)}if(n.postCommentOnError&&t){await postComment(a,t)}throw new HTTPException(500,{message:"Unexpected error"})}}));return s}async function postComment(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}(0,bt.config)();var Ht=Oe.Object({stateId:Oe.String(),eventName:Oe.String(),eventPayload:Oe.String(),authToken:Oe.String(),settings:Oe.String(),ref:Oe.String(),signature:Oe.String()});async function createActionsPlugin(e,t){const r={logLevel:t?.logLevel||i.INFO,postCommentOnError:t?.postCommentOnError||true,settingsSchema:t?.settingsSchema,envSchema:t?.envSchema,kernelPublicKey:t?.kernelPublicKey||Ut};const n=process.env.PLUGIN_GITHUB_TOKEN;if(!n){It.setFailed("Error: PLUGIN_GITHUB_TOKEN env is not set");return}const s=Decode(Ht,Ct.context.payload.inputs);const o=s.signature;if(!await verifySignature(r.kernelPublicKey,s,o)){It.setFailed(`Error: Invalid signature`);return}let a;if(r.settingsSchema){a=Decode(r.settingsSchema,value_Default(r.settingsSchema,JSON.parse(s.settings)))}else{a=JSON.parse(s.settings)}let A;if(r.envSchema){A=Decode(r.envSchema,value_Default(r.envSchema,process.env))}else{A=process.env}const l={eventName:s.eventName,payload:JSON.parse(s.eventPayload),octokit:new jt({auth:s.authToken}),config:a,env:A,logger:new u(r.logLevel)};try{const t=await e(l);It.setOutput("result",t);await returnDataToKernel(n,s.stateId,t)}catch(e){console.error(e);let t;if(e instanceof Error){It.setFailed(e);t=l.logger.error(`Error: ${e}`,{error:e})}else if(e instanceof c){It.setFailed(e.logMessage.raw);t=e}else{It.setFailed(`Error: ${e}`);t=l.logger.error(`Error: ${e}`)}if(r.postCommentOnError&&t){await postComment2(l,t)}}}async function postComment2(e,t){if("issue"in e.payload&&e.payload.repository?.owner?.login){await e.octokit.rest.issues.createComment({owner:e.payload.repository.owner.login,repo:e.payload.repository.name,issue_number:e.payload.issue.number,body:`${t.logMessage.diff}\n\x3c!--\n${getGithubWorkflowRunUrl()}\n${sanitizeMetadata(t.metadata)}\n--\x3e`})}else{e.logger.info("Cannot post comment because issue is not found in the payload")}}function getGithubWorkflowRunUrl(){return`${Ct.context.payload.repository?.html_url}/actions/runs/${Ct.context.runId}`}async function returnDataToKernel(e,t,r){const n=new jt({auth:e});await n.rest.repos.createDispatchEvent({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,event_type:"return-data-to-ubiquity-os-kernel",client_payload:{state_id:t,output:r?JSON.stringify(r):null}})}async function getWatchedRepos(e){const{config:{watch:{optOut:t}}}=e;const r=new Set;const n=e.payload.repository.owner?.login;if(!n){throw new Error("No owner found in the payload")}const s=await getReposForOrg(e,n);s.forEach((e=>r.add(e.name.toLowerCase())));for(const e of t){r.forEach((t=>t.includes(e)?r.delete(t):null))}return Array.from(r).map((e=>s.find((t=>t.name.toLowerCase()===e)))).filter((e=>e!==undefined))}async function getReposForOrg(e,t){const{octokit:r}=e;try{return await r.paginate(r.rest.repos.listForOrg,{org:t,per_page:100})}catch(e){throw new Error(`Error getting repositories for org ${t}: `+JSON.stringify(e))}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const qt="numeric",Yt="short",Kt="long";const Jt={year:qt,month:qt,day:qt};const $t={year:qt,month:Yt,day:qt};const Wt={year:qt,month:Yt,day:qt,weekday:Yt};const zt={year:qt,month:Kt,day:qt};const Zt={year:qt,month:Kt,day:qt,weekday:Kt};const Xt={hour:qt,minute:qt};const er={hour:qt,minute:qt,second:qt};const tr={hour:qt,minute:qt,second:qt,timeZoneName:Yt};const rr={hour:qt,minute:qt,second:qt,timeZoneName:Kt};const nr={hour:qt,minute:qt,hourCycle:"h23"};const sr={hour:qt,minute:qt,second:qt,hourCycle:"h23"};const or={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Yt};const ir={hour:qt,minute:qt,second:qt,hourCycle:"h23",timeZoneName:Kt};const ar={year:qt,month:qt,day:qt,hour:qt,minute:qt};const cr={year:qt,month:qt,day:qt,hour:qt,minute:qt,second:qt};const ur={year:qt,month:Yt,day:qt,hour:qt,minute:qt};const Ar={year:qt,month:Yt,day:qt,hour:qt,minute:qt,second:qt};const lr={year:qt,month:Yt,day:qt,weekday:Yt,hour:qt,minute:qt};const dr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,timeZoneName:Yt};const pr={year:qt,month:Kt,day:qt,hour:qt,minute:qt,second:qt,timeZoneName:Yt};const fr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,timeZoneName:Kt};const gr={year:qt,month:Kt,day:qt,weekday:Kt,hour:qt,minute:qt,second:qt,timeZoneName:Kt};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let hr=null;class SystemZone extends Zone{static get instance(){if(hr===null){hr=new SystemZone}return hr}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return false}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return true}}let mr={};function makeDTF(e){if(!mr[e]){mr[e]=new Intl.DateTimeFormat("en-US",{hour12:false,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})}return mr[e]}const Er={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,o,i,a,c,u,A]=n;return[i,s,o,a,c,u,A]}function partsOffset(e,t){const r=e.formatToParts(t);const n=[];for(let e=0;e=0?p:1e3+p;return(l-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ir={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let n=Ir[r];if(!n){n=new Intl.ListFormat(e,t);Ir[r]=n}return n}let Cr={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let n=Cr[r];if(!n){n=new Intl.DateTimeFormat(e,t);Cr[r]=n}return n}let br={};function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let n=br[r];if(!n){n=new Intl.NumberFormat(e,t);br[r]=n}return n}let Br={};function getCachedRTF(e,t={}){const{base:r,...n}=t;const s=JSON.stringify([e,n]);let o=Br[s];if(!o){o=new Intl.RelativeTimeFormat(e,t);Br[s]=o}return o}let Qr=null;function systemLocale(){if(Qr){return Qr}else{Qr=(new Intl.DateTimeFormat).resolvedOptions().locale;return Qr}}let Tr={};function getCachedWeekInfo(e){let t=Tr[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo;Tr[e]=t}return t}function parseLocaleString(e){const t=e.indexOf("-x-");if(t!==-1){e=e.substring(0,t)}const r=e.indexOf("-u-");if(r===-1){return[e]}else{let t;let n;try{t=getCachedDTF(e).resolvedOptions();n=e}catch(s){const o=e.substring(0,r);t=getCachedDTF(o).resolvedOptions();n=o}const{numberingSystem:s,calendar:o}=t;return[n,s,o]}}function intlConfigString(e,t,r){if(r||t){if(!e.includes("-u-")){e+="-u"}if(r){e+=`-ca-${r}`}if(t){e+=`-nu-${t}`}return e}else{return e}}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const n=DateTime.utc(2009,r,1);t.push(e(n))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const n=DateTime.utc(2016,11,13+r);t.push(e(n))}return t}function listStuff(e,t,r,n){const s=e.listingMode();if(s==="error"){return null}else if(s==="en"){return r(t)}else{return n(t)}}function supportsFastNumbers(e){if(e.numberingSystem&&e.numberingSystem!=="latn"){return false}else{return e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0;this.floor=r.floor||false;const{padTo:n,floor:s,...o}=r;if(!t||Object.keys(o).length>0){const t={useGrouping:false,...r};if(r.padTo>0)t.minimumIntegerDigits=r.padTo;this.inf=getCachedINF(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class PolyDateFormatter{constructor(e,t,r){this.opts=r;this.originalZone=undefined;let n=undefined;if(this.opts.timeZone){this.dt=e}else if(e.zone.type==="fixed"){const t=-1*(e.offset/60);const r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;if(e.offset!==0&&IANAZone.create(r).valid){n=r;this.dt=e}else{n="UTC";this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}}else if(e.zone.type==="system"){this.dt=e}else if(e.zone.type==="iana"){this.dt=e;n=e.zone.name}else{n="UTC";this.dt=e.setZone("UTC").plus({minutes:e.offset});this.originalZone=e.zone}const s={...this.opts};s.timeZone=s.timeZone||n;this.dtf=getCachedDTF(t,s)}format(){if(this.originalZone){return this.formatToParts().map((({value:e})=>e)).join("")}return this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());if(this.originalZone){return e.map((e=>{if(e.type==="timeZoneName"){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}else{return e}}))}return e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r};if(!t&&hasRelative()){this.rtf=getCachedRTF(e,r)}}format(e,t){if(this.rtf){return this.rtf.format(e,t)}else{return formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}}formatToParts(e,t){if(this.rtf){return this.rtf.formatToParts(e,t)}else{return[]}}}const vr={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,s=false){const o=e||Settings.defaultLocale;const i=o||(s?"en-US":systemLocale());const a=t||Settings.defaultNumberingSystem;const c=r||Settings.defaultOutputCalendar;const u=validateWeekSettings(n)||Settings.defaultWeekSettings;return new Locale(i,a,c,u,o)}static resetCache(){Qr=null;Cr={};br={};Br={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Locale.create(e,t,r,n)}constructor(e,t,r,n,s){const[o,i,a]=parseLocaleString(e);this.locale=o;this.numberingSystem=t||i||null;this.outputCalendar=r||a||null;this.weekSettings=n;this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar);this.weekdaysCache={format:{},standalone:{}};this.monthsCache={format:{},standalone:{}};this.meridiemCache=null;this.eraCache={};this.specifiedLocale=s;this.fastNumbersCached=null}get fastNumbers(){if(this.fastNumbersCached==null){this.fastNumbersCached=supportsFastNumbers(this)}return this.fastNumbersCached}listingMode(){const e=this.isEnglish();const t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){if(!e||Object.getOwnPropertyNames(e).length===0){return this}else{return Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||false)}}redefaultToEN(e={}){return this.clone({...e,defaultToEN:true})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:false})}months(e,t=false){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){this.monthsCache[n][e]=mapMonths((e=>this.extract(e,r,"month")))}return this.monthsCache[n][e]}))}weekdays(e,t=false){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";if(!this.weekdaysCache[n][e]){this.weekdaysCache[n][e]=mapWeekdays((e=>this.extract(e,r,"weekday")))}return this.weekdaysCache[n][e]}))}meridiems(){return listStuff(this,undefined,(()=>Hr),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};if(!this.eraCache[e]){this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))}return this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t),s=n.formatToParts(),o=s.find((e=>e.type.toLowerCase()===r));return o?o.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return getCachedLF(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings){return this.weekSettings}else if(!hasLocaleWeekInfo()){return vr}else{return getCachedWeekInfo(this.locale)}}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let wr=null;class FixedOffsetZone extends Zone{static get utcInstance(){if(wr===null){wr=new FixedOffsetZone(0)}return wr}static instance(e){return e===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t){return new FixedOffsetZone(signedOffset(t[1],t[2]))}}return null}constructor(e){super();this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){if(this.fixed===0){return"Etc/UTC"}else{return`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return true}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return true}}class InvalidZone extends Zone{constructor(e){super();this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return false}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return false}get isValid(){return false}}function normalizeZone(e,t){let r;if(isUndefined(e)||e===null){return t}else if(e instanceof Zone){return e}else if(isString(e)){const r=e.toLowerCase();if(r==="default")return t;else if(r==="local"||r==="system")return SystemZone.instance;else if(r==="utc"||r==="gmt")return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}else if(isNumber(e)){return FixedOffsetZone.instance(e)}else if(typeof e==="object"&&"offset"in e&&typeof e.offset==="function"){return e}else{return new InvalidZone(e)}}let now=()=>Date.now(),_r="system",kr=null,Rr=null,Sr=null,Fr=60,Dr,Nr=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){_r=e}static get defaultZone(){return normalizeZone(_r,SystemZone.instance)}static get defaultLocale(){return kr}static set defaultLocale(e){kr=e}static get defaultNumberingSystem(){return Rr}static set defaultNumberingSystem(e){Rr=e}static get defaultOutputCalendar(){return Sr}static set defaultOutputCalendar(e){Sr=e}static get defaultWeekSettings(){return Nr}static set defaultWeekSettings(e){Nr=validateWeekSettings(e)}static get twoDigitCutoffYear(){return Fr}static set twoDigitCutoffYear(e){Fr=e%100}static get throwOnInvalid(){return Dr}static set throwOnInvalid(e){Dr=e}static resetCaches(){Locale.resetCache();IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e;this.explanation=t}toMessage(){if(this.explanation){return`${this.reason}: ${this.explanation}`}else{return this.reason}}}const Pr=[0,31,59,90,120,151,181,212,243,273,304,334],Lr=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const n=new Date(Date.UTC(e,t-1,r));if(e<100&&e>=0){n.setUTCFullYear(n.getUTCFullYear()-1900)}const s=n.getUTCDay();return s===0?7:s}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?Lr:Pr)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?Lr:Pr,n=r.findIndex((e=>eweeksInWeekYear(n,t,r)){u=n+1;c=1}else{u=n}return{weekYear:u,weekNumber:c,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:n,weekNumber:s,weekday:o}=e,i=isoWeekdayToLocal(dayOfWeek(n,1,t),r),a=daysInYear(n);let c=s*7+o-i-7+t,u;if(c<1){u=n-1;c+=daysInYear(u)}else if(c>a){u=n+1;c-=daysInYear(n)}else{u=n}const{month:A,day:l}=uncomputeOrdinal(u,c);return{year:u,month:A,day:l,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:n}=e;const s=computeOrdinal(t,r,n);return{year:t,ordinal:s,...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e;const{month:n,day:s}=uncomputeOrdinal(t,r);return{year:t,month:n,day:s,...timeObject(e)}}function usesLocalWeekValues(e,t){const r=!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear);if(r){const r=!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear);if(r){throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields")}if(!isUndefined(e.localWeekday))e.weekday=e.localWeekday;if(!isUndefined(e.localWeekNumber))e.weekNumber=e.localWeekNumber;if(!isUndefined(e.localWeekYear))e.weekYear=e.localWeekYear;delete e.localWeekday;delete e.localWeekNumber;delete e.localWeekYear;return{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else{return{minDaysInFirstWeek:4,startOfWeek:1}}}function hasInvalidWeekData(e,t=4,r=1){const n=isInteger(e.weekYear),s=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),o=integerBetween(e.weekday,1,7);if(!n){return unitOutOfRange("weekYear",e.weekYear)}else if(!s){return unitOutOfRange("week",e.weekNumber)}else if(!o){return unitOutOfRange("weekday",e.weekday)}else return false}function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("ordinal",e.ordinal)}else return false}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),n=integerBetween(e.day,1,daysInMonth(e.year,e.month));if(!t){return unitOutOfRange("year",e.year)}else if(!r){return unitOutOfRange("month",e.month)}else if(!n){return unitOutOfRange("day",e.day)}else return false}function hasInvalidTimeData(e){const{hour:t,minute:r,second:n,millisecond:s}=e;const o=integerBetween(t,0,23)||t===24&&r===0&&n===0&&s===0,i=integerBetween(r,0,59),a=integerBetween(n,0,59),c=integerBetween(s,0,999);if(!o){return unitOutOfRange("hour",t)}else if(!i){return unitOutOfRange("minute",r)}else if(!a){return unitOutOfRange("second",n)}else if(!c){return unitOutOfRange("millisecond",s)}else return false}function isUndefined(e){return typeof e==="undefined"}function isNumber(e){return typeof e==="number"}function isInteger(e){return typeof e==="number"&&e%1===0}function isString(e){return typeof e==="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return false}}function hasLocaleWeekInfo(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return false}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length===0){return undefined}return e.reduce(((e,n)=>{const s=[t(n),n];if(!e){return s}else if(r(e[0],s[0])===e[0]){return e}else{return s}}),null)[1]}function util_pick(e,t){return t.reduce(((t,r)=>{t[r]=e[r];return t}),{})}function util_hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null){return null}else if(typeof e!=="object"){throw new InvalidArgumentError("Week settings must be an object")}else{if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7)))){throw new InvalidArgumentError("Invalid week settings")}return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){const r=e<0;let n;if(r){n="-"+(""+-e).padStart(t,"0")}else{n=(""+e).padStart(t,"0")}return n}function parseInteger(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseInt(e,10)}}function parseFloating(e){if(isUndefined(e)||e===null||e===""){return undefined}else{return parseFloat(e)}}function parseMillis(e){if(isUndefined(e)||e===null||e===""){return undefined}else{const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function roundTo(e,t,r=false){const n=10**t,s=r?Math.trunc:Math.round;return s(e*n)/n}function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1,n=e+(t-r)/12;if(r===2){return isLeapYear(n)?29:28}else{return[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){t=new Date(t);t.setUTCFullYear(e.year,e.month-1,e.day)}return+t}function firstWeekOffset(e,t,r){const n=isoWeekdayToLocal(dayOfWeek(e,1,t),r);return-n+t-1}function weeksInWeekYear(e,t=4,r=1){const n=firstWeekOffset(e,t,r);const s=firstWeekOffset(e+1,t,r);return(daysInYear(e)-n+s)/7}function untruncateYear(e){if(e>99){return e}else return e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,n=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};if(n){o.timeZone=n}const i={timeZoneName:t,...o};const a=new Intl.DateTimeFormat(r,i).formatToParts(s).find((e=>e.type.toLowerCase()==="timezonename"));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);if(Number.isNaN(r)){r=0}const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}function asNumber(e){const t=Number(e);if(typeof e==="boolean"||e===""||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const n in e){if(util_hasOwnProperty(e,n)){const s=e[n];if(s===undefined||s===null)continue;r[t(n)]=asNumber(s)}}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${padStart(r,2)}:${padStart(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${padStart(r,2)}${padStart(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return util_pick(e,["hour","minute","second","millisecond"])}function stringify(e){return JSON.stringify(e,Object.keys(e).sort())}const Ur=["January","February","March","April","May","June","July","August","September","October","November","December"];const Mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const xr=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...xr];case"short":return[...Mr];case"long":return[...Ur];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Gr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];const jr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];const Vr=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...Vr];case"short":return[...jr];case"long":return[...Gr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hr=["AM","PM"];const qr=["Before Christ","Anno Domini"];const Yr=["BC","AD"];const Kr=["B","A"];function eras(e){switch(e){case"narrow":return[...Kr];case"short":return[...Yr];case"long":return[...qr];default:return null}}function meridiemForDateTime(e){return Hr[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",n=false){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};const o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){const r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${s[e][0]}`;case-1:return r?"yesterday":`last ${s[e][0]}`;case 0:return r?"today":`this ${s[e][0]}`;default:}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),c=a===1,u=s[e],A=n?c?u[1]:u[2]||u[1]:c?s[e][0]:e;return i?`${a} ${A} ago`:`in ${a} ${A}`}function formatString(e){const t=pick(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),r=stringify(t),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case stringify(Formats.DATE_SHORT):return"M/d/yyyy";case stringify(Formats.DATE_MED):return"LLL d, yyyy";case stringify(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case stringify(Formats.DATE_FULL):return"LLLL d, yyyy";case stringify(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case stringify(Formats.TIME_SIMPLE):return"h:mm a";case stringify(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case stringify(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case stringify(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case stringify(Formats.TIME_24_SIMPLE):return"HH:mm";case stringify(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case stringify(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case stringify(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case stringify(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case stringify(Formats.DATETIME_HUGE):return n;case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case stringify(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function stringifyTokens(e,t){let r="";for(const n of e){if(n.literal){r+=n.val}else{r+=t(n.val)}}return r}const Jr={D:Jt,DD:$t,DDD:zt,DDDD:Zt,t:Xt,tt:er,ttt:tr,tttt:rr,T:nr,TT:sr,TTT:or,TTTT:ir,f:ar,ff:ur,fff:dr,ffff:fr,F:cr,FF:Ar,FFF:pr,FFFF:gr};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",n=false;const s=[];for(let o=0;o0){s.push({literal:n||/^\s+$/.test(r),val:r})}t=null;r="";n=!n}else if(n){r+=i}else if(i===t){r+=i}else{if(r.length>0){s.push({literal:/^\s+$/.test(r),val:r})}r=i;t=i}}if(r.length>0){s.push({literal:n||/^\s+$/.test(r),val:r})}return s}static macroTokenToFormatOpts(e){return Jr[e]}constructor(e,t){this.opts=t;this.loc=e;this.systemLoc=null}formatWithSystemDefault(e,t){if(this.systemLoc===null){this.systemLoc=this.loc.redefaultToSystem()}const r=this.systemLoc.dtFormatter(e,{...this.opts,...t});return r.format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){const r=this.dtFormatter(e.start,t);return r.dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple){return padStart(e,t)}const r={...this.opts};if(t>0){r.padTo=t}return this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>{if(e.isOffsetFixed&&e.offset===0&&t.allowZ){return"Z"}return e.isValid?e.zone.formatOffset(e.ts,t.format):""},meridiem=()=>r?meridiemForDateTime(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,n)=>r?monthForDateTime(e,t):string(n?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,n)=>r?weekdayForDateTime(e,t):string(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);if(r){return this.formatWithSystemDefault(e,r)}else{return t}},era=t=>r?eraForDateTime(e,t):string({era:t},"era"),tokenToString=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return n?string({day:"numeric"},"day"):this.num(e.day);case"dd":return n?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return weekday("short",true);case"cccc":return weekday("long",true);case"ccccc":return weekday("narrow",true);case"E":return this.num(e.weekday);case"EEE":return weekday("short",false);case"EEEE":return weekday("long",false);case"EEEEE":return weekday("narrow",false);case"L":return n?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",true);case"LLLL":return month("long",true);case"LLLLL":return month("narrow",true);case"M":return n?string({month:"numeric"},"month"):this.num(e.month);case"MM":return n?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",false);case"MMMM":return month("long",false);case"MMMMM":return month("narrow",false);case"y":return n?string({year:"numeric"},"year"):this.num(e.year);case"yy":return n?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}};return stringifyTokens(Formatter.parseFormat(t),tokenToString)}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},tokenToString=e=>t=>{const r=tokenToField(t);if(r){return this.num(e.get(r),t.length)}else{return t}},r=Formatter.parseFormat(t),n=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]),s=e.shiftTo(...n.map(tokenToField).filter((e=>e)));return stringifyTokens(r,tokenToString(s))}}const $r=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,n],s)=>{const[o,i,a]=s(t,n);return[{...e,...o},i||r,a]}),[{},null,1]).slice(0,2)}function regexParser_parse(e,...t){if(e==null){return[null,null]}for(const[r,n]of t){const t=r.exec(e);if(t){return n(t)}}return[null,null]}function simpleParse(...e){return(t,r)=>{const n={};let s;for(s=0;se!==undefined&&(t||e&&A)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(n)),weeks:maybeNegate(parseFloating(s)),days:maybeNegate(parseFloating(o)),hours:maybeNegate(parseFloating(i)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),c==="-0"),milliseconds:maybeNegate(parseMillis(u),l)}]}const dn={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(e,t,r,n,s,o,i){const a={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:Mr.indexOf(r)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(o)};if(i)a.second=parseInteger(i);if(e){a.weekday=e.length>3?Gr.indexOf(e)+1:jr.indexOf(e)+1}return a}const pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,n,s,o,i,a,c,u,A,l]=e,d=fromStrings(t,s,n,r,o,i,a);let p;if(c){p=dn[c]}else if(u){p=0}else{p=signedOffset(A,l)}return[d,new FixedOffsetZone(p)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,gn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,hn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,s,n,r,o,i,a);return[c,FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,n,s,o,i,a]=e,c=fromStrings(t,a,r,n,s,o,i);return[c,FixedOffsetZone.utcInstance]}const mn=combineRegexes(tn,en);const En=combineRegexes(rn,en);const yn=combineRegexes(nn,en);const In=combineRegexes(Xr);const Cn=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone);const bn=combineExtractors(sn,extractISOTime,extractISOOffset,extractIANAZone);const Bn=combineExtractors(on,extractISOTime,extractISOOffset,extractIANAZone);const Qn=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return regexParser_parse(e,[mn,Cn],[En,bn],[yn,Bn],[In,Qn])}function parseRFC2822Date(e){return regexParser_parse(preprocessRFC2822(e),[pn,extractRFC2822])}function parseHTTPDate(e){return regexParser_parse(e,[fn,extractRFC1123Or850],[gn,extractRFC1123Or850],[hn,extractASCII])}function parseISODuration(e){return regexParser_parse(e,[ln,extractISODuration])}const Tn=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return regexParser_parse(e,[An,Tn])}const vn=combineRegexes(an,un);const wn=combineRegexes(cn);const _n=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return regexParser_parse(e,[vn,Cn],[wn,_n])}const On="Invalid Duration";const kn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Rn={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...kn},Sn=146097/400,Fn=146097/4800,Dn={years:{quarters:4,months:12,weeks:Sn/7,days:Sn,hours:Sn*24,minutes:Sn*24*60,seconds:Sn*24*60*60,milliseconds:Sn*24*60*60*1e3},quarters:{months:3,weeks:Sn/28,days:Sn/4,hours:Sn*24/4,minutes:Sn*24*60/4,seconds:Sn*24*60*60/4,milliseconds:Sn*24*60*60*1e3/4},months:{weeks:Fn/7,days:Fn,hours:Fn*24,minutes:Fn*24*60,seconds:Fn*24*60*60,milliseconds:Fn*24*60*60*1e3},...kn};const Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];const Pn=Nn.slice(0).reverse();function clone(e,t,r=false){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(n)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const n of Pn.slice(1)){if(t[n]){r+=t[n]*e[n]["milliseconds"]}}return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Nn.reduceRight(((n,s)=>{if(!isUndefined(t[s])){if(n){const o=t[n]*r;const i=e[s][n];const a=Math.floor(o/i);t[s]+=a*r;t[n]-=a*i*r}return s}else{return n}}),null);Nn.reduce(((r,n)=>{if(!isUndefined(t[n])){if(r){const s=t[r]%1;t[r]-=s;t[n]+=s*e[r][n]}return n}else{return r}}),null)}function removeZeroes(e){const t={};for(const[r,n]of Object.entries(e)){if(n!==0){t[r]=n}}return t}class Duration{constructor(e){const t=e.conversionAccuracy==="longterm"||false;let r=t?Dn:Rn;if(e.matrix){r=e.matrix}this.values=e.values;this.loc=e.loc||Locale.create();this.conversionAccuracy=t?"longterm":"casual";this.invalid=e.invalid||null;this.matrix=r;this.isLuxonDuration=true}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!=="object"){throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`)}return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e)){return Duration.fromMillis(e)}else if(Duration.isDuration(e)){return e}else if(typeof e==="object"){return Duration.fromObject(e)}else{throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}}static fromISO(e,t){const[r]=parseISODuration(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static fromISOTime(e,t){const[r]=parseISOTimeOnly(e);if(r){return Duration.fromObject(r,t)}else{return Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the Duration is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDurationError(r)}else{return new Duration({invalid:r})}}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||false}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:t.round!==false&&t.floor!==false};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):On}toHuman(e={}){if(!this.isValid)return On;const t=Nn.map((t=>{const r=this.values[t];if(isUndefined(r)){return null}return this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){if(!this.isValid)return{};return{...this.values}}toISO(){if(!this.isValid)return null;let e="P";if(this.years!==0)e+=this.years+"Y";if(this.months!==0||this.quarters!==0)e+=this.months+this.quarters*3+"M";if(this.weeks!==0)e+=this.weeks+"W";if(this.days!==0)e+=this.days+"D";if(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)e+="T";if(this.hours!==0)e+=this.hours+"H";if(this.minutes!==0)e+=this.minutes+"M";if(this.seconds!==0||this.milliseconds!==0)e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S";if(e==="P")e+="T0S";return e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:false,suppressSeconds:false,includePrefix:false,format:"extended",...e,includeOffset:false};const r=DateTime.fromMillis(t,{zone:"UTC"});return r.toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Duration { values: ${JSON.stringify(this.values)} }`}else{return`Duration { Invalid, reason: ${this.invalidReason} }`}}toMillis(){if(!this.isValid)return NaN;return durationToMillis(this.matrix,this.values)}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Nn){if(util_hasOwnProperty(t.values,e)||util_hasOwnProperty(this.values,e)){r[e]=t.get(e)+this.get(e)}}return clone(this,{values:r},true)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values)){t[r]=asNumber(e(this.values[r],r))}return clone(this,{values:t},true)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,Duration.normalizeUnit)};return clone(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t});const o={loc:s,matrix:n,conversionAccuracy:r};return clone(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();normalizeValues(this.matrix,e);return clone(this,{values:e},true)}rescale(){if(!this.isValid)return this;const e=removeZeroes(this.normalize().shiftToAll().toObject());return clone(this,{values:e},true)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0){return this}e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},n=this.toObject();let s;for(const o of Nn){if(e.indexOf(o)>=0){s=o;let e=0;for(const t in r){e+=this.matrix[t][o]*r[t];r[t]=0}if(isNumber(n[o])){e+=n[o]}const i=Math.trunc(e);t[o]=i;r[o]=(e*1e3-i*1e3)/1e3}else if(isNumber(n[o])){r[o]=n[o]}}for(const e in r){if(r[e]!==0){t[s]+=e===s?r[e]:r[e]/this.matrix[s][e]}}normalizeValues(this.matrix,t);return clone(this,{values:t},true)}shiftToAll(){if(!this.isValid)return this;return this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds")}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values)){e[t]=this.values[t]===0?0:-this.values[t]}return clone(this,{values:e},true)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid){return false}if(!this.loc.equals(e.loc)){return false}function eq(e,t){if(e===undefined||e===0)return t===undefined||t===0;return e===t}for(const t of Nn){if(!eq(this.values[t],e.values[t])){return false}}return true}}const Ln="Invalid Interval";function validateStartEnd(e,t){if(!e||!e.isValid){return Interval.invalid("missing or invalid start")}else if(!t||!t.isValid){return Interval.invalid("missing or invalid end")}else if(te}isBefore(e){if(!this.isValid)return false;return this.e<=e}contains(e){if(!this.isValid)return false;return this.s<=e&&this.e>e}set({start:e,end:t}={}){if(!this.isValid)return this;return Interval.fromDateTimes(e||this.s,t||this.e)}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,s=0;while(n+this.e?this.e:e;r.push(Interval.fromDateTimes(n,o));n=o;s+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0){return[]}let{s:r}=this,n=1,s;const o=[];while(re*n)));s=+e>+this.e?this.e:e;o.push(Interval.fromDateTimes(r,s));r=s;n+=1}return o}divideEqually(e){if(!this.isValid)return[];return this.splitBy(this.length()/e).slice(0,e)}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){if(!this.isValid||!e.isValid){return false}return this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e=r){return null}else{return Interval.fromDateTimes(t,r)}}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>{if(!t){return[e,r]}else if(t.overlaps(r)||t.abutsStart(r)){return[e,t.union(r)]}else{return[e.concat([t]),r]}}),[[],null]);if(r){t.push(r)}return t}static xor(e){let t=null,r=0;const n=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s),i=o.sort(((e,t)=>e.time-t.time));for(const e of i){r+=e.type==="s"?1:-1;if(r===1){t=e.time}else{if(t&&+t!==+e.time){n.push(Interval.fromDateTimes(t,e.time))}t=null}}return Interval.merge(n)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){if(!this.isValid)return Ln;return`[${this.s.toISO()} – ${this.e.toISO()})`}[Symbol.for("nodejs.util.inspect.custom")](){if(this.isValid){return`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`}else{return`Interval { Invalid, reason: ${this.invalidReason} }`}}toLocaleString(e=Jt,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ln}toISO(e){if(!this.isValid)return Ln;return`${this.s.toISO(e)}/${this.e.toISO(e)}`}toISODate(){if(!this.isValid)return Ln;return`${this.s.toISODate()}/${this.e.toISODate()}`}toISOTime(e){if(!this.isValid)return Ln;return`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`}toFormat(e,{separator:t=" – "}={}){if(!this.isValid)return Ln;return`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`}toDuration(e,t){if(!this.isValid){return Duration.invalid(this.invalidReason)}return this.e.diff(this.s,e,t)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:s="gregory"}={}){return(n||Locale.create(t,r,s)).months(e,true)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Locale.create(t,r,null)).weekdays(e,true)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:true}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function highOrderDiffs(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]];const s={};const o=e;let i,a;for(const[c,u]of n){if(r.indexOf(c)>=0){i=c;s[c]=u(e,t);a=o.plus(s);if(a>t){s[c]--;e=o.plus(s);if(e>t){a=e;s[c]--;e=o.plus(s)}}else{e=a}}}return[e,s,a,i]}function diff(e,t,r,n){let[s,o,i,a]=highOrderDiffs(e,t,r);const c=t-s;const u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));if(u.length===0){if(i0){return Duration.fromMillis(c,n).shiftTo(...u).plus(A)}else{return A}}const Un={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};const Mn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};const xn=Un.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r=r&&n<=s){t+=n-r}}}}return parseInt(t,10)}else{return t}}function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Un[e||"latn"]}${t}`)}const Gn="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=e=>e){return{regex:e,deser:([e])=>t(parseDigits(e))}}const jn=String.fromCharCode(160);const Vn=`[ ${jn}]`;const Hn=new RegExp(Vn,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(Hn,Vn)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(Hn," ").toLowerCase()}function oneOf(e,t){if(e===null){return null}else{return{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),n=digitRegex(t,"{2}"),s=digitRegex(t,"{3}"),o=digitRegex(t,"{4}"),i=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),A=digitRegex(t,"{1,9}"),l=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>({regex:RegExp(escapeToken(e.val)),deser:([e])=>e,literal:true}),unitate=p=>{if(e.literal){return literal(p)}switch(p.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":return intUnit(l,untruncateYear);case"yyyy":return intUnit(o);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(i);case"M":return intUnit(a);case"MM":return intUnit(n);case"MMM":return oneOf(t.months("short",true),1);case"MMMM":return oneOf(t.months("long",true),1);case"L":return intUnit(a);case"LL":return intUnit(n);case"LLL":return oneOf(t.months("short",false),1);case"LLLL":return oneOf(t.months("long",false),1);case"d":return intUnit(a);case"dd":return intUnit(n);case"o":return intUnit(c);case"ooo":return intUnit(s);case"HH":return intUnit(n);case"H":return intUnit(a);case"hh":return intUnit(n);case"h":return intUnit(a);case"mm":return intUnit(n);case"m":return intUnit(a);case"q":return intUnit(a);case"qq":return intUnit(n);case"s":return intUnit(a);case"ss":return intUnit(n);case"S":return intUnit(c);case"SSS":return intUnit(s);case"u":return simple(A);case"uu":return simple(a);case"uuu":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"kkkk":return intUnit(o);case"kk":return intUnit(l,untruncateYear);case"W":return intUnit(a);case"WW":return intUnit(n);case"E":case"c":return intUnit(r);case"EEE":return oneOf(t.weekdays("short",false),1);case"EEEE":return oneOf(t.weekdays("long",false),1);case"ccc":return oneOf(t.weekdays("short",true),1);case"cccc":return oneOf(t.weekdays("long",true),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(p)}};const p=unitate(e)||{invalidReason:Gn};p.token=e;return p}const qn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:n,value:s}=e;if(n==="literal"){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[n];let i=n;if(n==="hour"){if(t.hour12!=null){i=t.hour12?"hour12":"hour24"}else if(t.hourCycle!=null){if(t.hourCycle==="h11"||t.hourCycle==="h12"){i="hour12"}else{i="hour24"}}else{i=r.hour12?"hour12":"hour24"}}let a=qn[i];if(typeof a==="object"){a=a[o]}if(a){return{literal:false,val:a}}return undefined}function buildRegex(e){const t=e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"");return[`^${t}$`,e]}function match(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const s in r){if(util_hasOwnProperty(r,s)){const o=r[s],i=o.groups?o.groups+1:1;if(!o.literal&&o.token){e[o.token.val[0]]=o.deser(n.slice(t,t+i))}t+=i}}return[n,e]}else{return[n,{}]}}function dateTimeFromMatches(e){const toField=e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null;let r;if(!isUndefined(e.z)){t=IANAZone.create(e.z)}if(!isUndefined(e.Z)){if(!t){t=new FixedOffsetZone(e.Z)}r=e.Z}if(!isUndefined(e.q)){e.M=(e.q-1)*3+1}if(!isUndefined(e.h)){if(e.h<12&&e.a===1){e.h+=12}else if(e.h===12&&e.a===0){e.h=0}}if(e.G===0&&e.y){e.y=-e.y}if(!isUndefined(e.u)){e.S=parseMillis(e.u)}const n=Object.keys(e).reduce(((t,r)=>{const n=toField(r);if(n){t[n]=e[r]}return t}),{});return[n,t,r]}let Yn=null;function getDummyDateTime(){if(!Yn){Yn=DateTime.fromMillis(1555555555555)}return Yn}function maybeExpandMacroToken(e,t){if(e.literal){return e}const r=Formatter.macroTokenToFormatOpts(e.val);const n=formatOptsToTokens(r,t);if(n==null||n.includes(undefined)){return e}return n}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>maybeExpandMacroToken(e,t))))}function explainFromTokens(e,t,r){const n=expandMacroTokens(Formatter.parseFormat(r),e),s=n.map((t=>unitForToken(t,e))),o=s.find((e=>e.invalidReason));if(o){return{input:t,tokens:n,invalidReason:o.invalidReason}}else{const[e,r]=buildRegex(s),o=RegExp(e,"i"),[i,a]=match(t,o,r),[c,u,A]=a?dateTimeFromMatches(a):[null,null,undefined];if(util_hasOwnProperty(a,"a")&&util_hasOwnProperty(a,"H")){throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format")}return{input:t,tokens:n,regex:o,rawMatches:i,matches:a,result:c,zone:u,specificOffset:A}}}function parseFromTokens(e,t,r){const{result:n,zone:s,specificOffset:o,invalidReason:i}=explainFromTokens(e,t,r);return[n,s,o,i]}function formatOptsToTokens(e,t){if(!e){return null}const r=Formatter.create(t,e);const n=r.dtFormatter(getDummyDateTime());const s=n.formatToParts();const o=n.resolvedOptions();return s.map((t=>tokenForPart(t,e,o)))}const Kn="Invalid DateTime";const Jn=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){if(e.weekData===null){e.weekData=gregorianToWeek(e.c)}return e.weekData}function possiblyCachedLocalWeekData(e){if(e.localWeekData===null){e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())}return e.localWeekData}function datetime_clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let n=e-t*60*1e3;const s=r.offset(n);if(t===s){return[n,t]}n-=(s-t)*60*1e3;const o=r.offset(n);if(s===o){return[n,s]}return[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function tsToObj(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:s,day:Math.min(e.c.day,daysInMonth(n,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},i=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(o);let[c,u]=fixOffset(a,r,e.zone);if(i!==0){c+=i;u=e.zone.offset(c)}return{ts:c,o:u}}function parseDataToDateTime(e,t,r,n,s,o){const{setZone:i,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const n=t||a,s=DateTime.fromObject(e,{...r,zone:n,specificOffset:o});return i?s:s.setZone(a)}else{return DateTime.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}}function toTechFormat(e,t,r=true){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:true}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let n="";if(r&&e.c.year>=0)n+="+";n+=padStart(e.c.year,r?6:4);if(t){n+="-";n+=padStart(e.c.month);n+="-";n+=padStart(e.c.day)}else{n+=padStart(e.c.month);n+=padStart(e.c.day)}return n}function toISOTime(e,t,r,n,s,o){let i=padStart(e.c.hour);if(t){i+=":";i+=padStart(e.c.minute);if(e.c.millisecond!==0||e.c.second!==0||!r){i+=":"}}else{i+=padStart(e.c.minute)}if(e.c.millisecond!==0||e.c.second!==0||!r){i+=padStart(e.c.second);if(e.c.millisecond!==0||!n){i+=".";i+=padStart(e.c.millisecond,3)}}if(s){if(e.isOffsetFixed&&e.offset===0&&!o){i+="Z"}else if(e.o<0){i+="-";i+=padStart(Math.trunc(-e.o/60));i+=":";i+=padStart(Math.trunc(-e.o%60))}else{i+="+";i+=padStart(Math.trunc(e.o/60));i+=":";i+=padStart(Math.trunc(e.o%60))}}if(o){i+="["+e.zone.ianaName+"]"}return i}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},zn={ordinal:1,hour:0,minute:0,second:0,millisecond:0};const Zn=["year","month","day","hour","minute","second","millisecond"],Xn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],es=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),n=Locale.fromObject(t),s=Settings.now();let o,i;if(!isUndefined(e.year)){for(const t of Zn){if(isUndefined(e[t])){e[t]=$n[t]}}const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t){return DateTime.invalid(t)}const n=r.offset(s);[o,i]=objToTS(e,n,r)}else{o=s}return new DateTime({ts:o,zone:r,loc:n,o:i})}function diffRelative(e,t,r){const n=isUndefined(r.round)?true:r.round,format=(e,s)=>{e=roundTo(e,n||r.calendary?0:2,true);const o=t.loc.clone(r).relFormatter(r);return o.format(e,s)},differ=n=>{if(r.calendary){if(!t.hasSame(e,n)){return t.startOf(n).diff(e.startOf(n),n).get(n)}else return 0}else{return t.diff(e,n).get(n)}};if(r.unit){return format(differ(r.unit),r.unit)}for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1){return format(t,e)}}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t={},r;if(e.length>0&&typeof e[e.length-1]==="object"){t=e[e.length-1];r=Array.from(e).slice(0,e.length-1)}else{r=Array.from(e)}return[t,r]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(!t.isValid?unsupportedZone(t):null);this.ts=isUndefined(e.ts)?Settings.now():e.ts;let n=null,s=null;if(!r){const o=e.old&&e.old.ts===this.ts&&e.old.zone.equals(t);if(o){[n,s]=[e.old.c,e.old.o]}else{const e=t.offset(this.ts);n=tsToObj(this.ts,e);r=Number.isNaN(n.year)?new Invalid("invalid input"):null;n=r?null:n;s=r?null:e}}this._zone=t;this.loc=e.loc||Locale.create();this.invalid=r;this.weekData=null;this.localWeekData=null;this.c=n;this.o=s;this.isLuxonDateTime=true}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,n,s,o,i,a,c]=t;e.zone=FixedOffsetZone.utcInstance;return quickDT({year:r,month:n,day:s,hour:o,minute:i,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=isDate(e)?e.valueOf():NaN;if(Number.isNaN(r)){return DateTime.invalid("invalid input")}const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid){return DateTime.invalid(unsupportedZone(n))}return new DateTime({ts:r,zone:n,loc:Locale.fromObject(t)})}static fromMillis(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}else if(e<-Jn||e>Jn){return DateTime.invalid("Timestamp out of range")}else{return new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromSeconds(e,t={}){if(!isNumber(e)){throw new InvalidArgumentError("fromSeconds requires a numerical input")}else{return new DateTime({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)})}}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid){return DateTime.invalid(unsupportedZone(r))}const n=Locale.fromObject(t);const s=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:o,startOfWeek:i}=usesLocalWeekValues(s,n);const a=Settings.now(),c=!isUndefined(t.specificOffset)?t.specificOffset:r.offset(a),u=!isUndefined(s.ordinal),A=!isUndefined(s.year),l=!isUndefined(s.month)||!isUndefined(s.day),d=A||l,p=s.weekYear||s.weekNumber;if((d||u)&&p){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(l&&u){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}const g=p||s.weekday&&!d;let h,m,E=tsToObj(a,c);if(g){h=Xn;m=Wn;E=gregorianToWeek(E,o,i)}else if(u){h=es;m=zn;E=gregorianToOrdinal(E)}else{h=Zn;m=$n}let y=false;for(const e of h){const t=s[e];if(!isUndefined(t)){y=true}else if(y){s[e]=m[e]}else{s[e]=E[e]}}const I=g?hasInvalidWeekData(s,o,i):u?hasInvalidOrdinalData(s):hasInvalidGregorianData(s),C=I||hasInvalidTimeData(s);if(C){return DateTime.invalid(C)}const b=g?weekToGregorian(s,o,i):u?ordinalToGregorian(s):s,[B,Q]=objToTS(b,c,r),T=new DateTime({ts:B,zone:r,o:Q,loc:n});if(s.weekday&&d&&e.weekday!==T.weekday){return DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`)}return T}static fromISO(e,t={}){const[r,n]=parseISODate(e);return parseDataToDateTime(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=parseRFC2822Date(e);return parseDataToDateTime(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=parseHTTPDate(e);return parseDataToDateTime(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t)){throw new InvalidArgumentError("fromFormat requires an input string and a format")}const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true}),[i,a,c,u]=parseFromTokens(o,e,t);if(u){return DateTime.invalid(u)}else{return parseDataToDateTime(i,a,r,`format ${t}`,e,c)}}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=parseSQL(e);return parseDataToDateTime(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e){throw new InvalidArgumentError("need to specify a reason the DateTime is invalid")}const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid){throw new InvalidDateTimeError(r)}else{return new DateTime({invalid:r})}}static isDateTime(e){return e&&e.isLuxonDateTime||false}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return!r?null:r.map((e=>e?e.val:null)).join("")}static expandFormat(e,t={}){const r=expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t));return r.map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"short",locale:this.locale})}else{return null}}get offsetNameLong(){if(this.isValid){return this.zone.offsetName(this.ts,{format:"long",locale:this.locale})}else{return null}}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){if(this.isOffsetFixed){return false}else{return this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed){return[this]}const e=864e5;const t=6e4;const r=objToLocalTS(this.c);const n=this.zone.offset(r-e);const s=this.zone.offset(r+e);const o=this.zone.offset(r-n*t);const i=this.zone.offset(r-s*t);if(o===i){return[this]}const a=r-o*t;const c=r-i*t;const u=tsToObj(a,o);const A=tsToObj(c,i);if(u.hour===A.hour&&u.minute===A.minute&&u.second===A.second&&u.millisecond===A.millisecond){return[datetime_clone(this,{ts:a}),datetime_clone(this,{ts:c})]}return[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=false,keepCalendarTime:r=false}={}){e=normalizeZone(e,Settings.defaultZone);if(e.equals(this.zone)){return this}else if(!e.isValid){return DateTime.invalid(unsupportedZone(e))}else{let n=this.ts;if(t||r){const t=e.offset(this.ts);const r=this.toObject();[n]=objToTS(r,t,e)}return datetime_clone(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const n=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return datetime_clone(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks);const{minDaysInFirstWeek:r,startOfWeek:n}=usesLocalWeekValues(t,this.loc);const s=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),o=!isUndefined(t.ordinal),i=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=i||a,u=t.weekYear||t.weekNumber;if((c||o)&&u){throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals")}if(a&&o){throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day")}let A;if(s){A=weekToGregorian({...gregorianToWeek(this.c,r,n),...t},r,n)}else if(!isUndefined(t.ordinal)){A=ordinalToGregorian({...gregorianToOrdinal(this.c),...t})}else{A={...this.toObject(),...t};if(isUndefined(t.day)){A.day=Math.min(daysInMonth(A.year,A.month),A.day)}}const[l,d]=objToTS(A,this.o,this.zone);return datetime_clone(this,{ts:l,o:d})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return datetime_clone(this,adjustTime(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return datetime_clone(this,adjustTime(this,t))}startOf(e,{useLocaleWeeks:t=false}={}){if(!this.isValid)return this;const r={},n=Duration.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break;case"milliseconds":break}if(n==="weeks"){if(t){const e=this.loc.getStartOfWeek();const{weekday:t}=this;if(tthis.valueOf(),i=o?this:e,a=o?e:this,c=diff(i,a,s,n);return o?c.negate():c}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return false;const n=e.valueOf();const s=this.setZone(e.zone,{keepLocalTime:true});return s.startOf(t,r)<=n&&n<=s.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime)){throw new InvalidArgumentError("max requires all arguments be DateTimes")}return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:s=null}=r,o=Locale.fromOpts({locale:n,numberingSystem:s,defaultToEN:true});return explainFromTokens(o,e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return Jt}static get DATE_MED(){return $t}static get DATE_MED_WITH_WEEKDAY(){return Wt}static get DATE_FULL(){return zt}static get DATE_HUGE(){return Zt}static get TIME_SIMPLE(){return Xt}static get TIME_WITH_SECONDS(){return er}static get TIME_WITH_SHORT_OFFSET(){return tr}static get TIME_WITH_LONG_OFFSET(){return rr}static get TIME_24_SIMPLE(){return nr}static get TIME_24_WITH_SECONDS(){return sr}static get TIME_24_WITH_SHORT_OFFSET(){return or}static get TIME_24_WITH_LONG_OFFSET(){return ir}static get DATETIME_SHORT(){return ar}static get DATETIME_SHORT_WITH_SECONDS(){return cr}static get DATETIME_MED(){return ur}static get DATETIME_MED_WITH_SECONDS(){return Ar}static get DATETIME_MED_WITH_WEEKDAY(){return lr}static get DATETIME_FULL(){return dr}static get DATETIME_FULL_WITH_SECONDS(){return pr}static get DATETIME_HUGE(){return fr}static get DATETIME_HUGE_WITH_SECONDS(){return gr}}function friendlyDateTime(e){if(DateTime.isDateTime(e)){return e}else if(e&&e.valueOf&&isNumber(e.valueOf())){return DateTime.fromJSDate(e)}else if(e&&typeof e==="object"){return DateTime.fromObject(e)}else{throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}const ts="3.4.4";const rs="Followup";const ns="Unassign";const ss=e(import.meta.url)("node:fs");var os=__nccwpck_require__(17645);var is=__nccwpck_require__(90423);const as=validateQuery;const cs=(0,os.buildClientSchema)(JSON.parse((0,ss.readFileSync)(__nccwpck_require__.ab+"schema.json","utf8")));function validateQuery(e){return(0,os.validate)(cs,is(e))}const us=`\n query collectLinkedPullRequests($owner: String!, $repo: String!, $issue_number: Int!) {\n repository(owner: $owner, name: $repo) {\n issue(number: $issue_number) {\n closedByPullRequestsReferences(first: 100, includeClosedPrs: false) {\n edges {\n node {\n url\n title\n body\n state\n number\n author {\n login\n ... on User {\n id: databaseId\n }\n }\n }\n }\n }\n }\n }\n }\n`;const As=as(us);if(As.length>1){throw new Error(`Invalid query: ${As.join(", ")}`)}async function collectLinkedPullRequests(e,t){const{owner:r,repo:n,issue_number:s}=t;const o=await e.octokit.graphql(us,{owner:r,repo:n,issue_number:s});return o.repository.issue.closedByPullRequestsReferences.edges.map((e=>e.node))}function parseIssueUrl(e){const t=new URL(e).pathname.split("/");if(t.length!==5){throw new Error(`[parseGitHubUrl] Invalid url: [${e}]`)}return{owner:t[1],repo:t[2],issue_number:Number(t[4])}}async function getAssigneesActivityForIssue(e,t,r){const n=parseIssueUrl(t.html_url);const s=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:n.owner,repo:n.repo,issue_number:n.issue_number,per_page:100});const o=await collectLinkedPullRequests(e,n);for(const t of o){const{owner:r,repo:n,issue_number:o}=parseIssueUrl(t.url||"");const i=await e.octokit.paginate(e.octokit.rest.issues.listEventsForTimeline,{owner:r,repo:n,issue_number:o,per_page:100});s.push(...i)}return filterEvents(s,r)}function filterEvents(e,t){const r=new Map;let n=[];for(const s of e){let e=null;let o=null;let i=null;let a=s.event;if("actor"in s&&s.actor){o=s.actor.login.toLowerCase();if(!r.has(o)){r.set(o,s.actor.id)}e=r.get(o);i=s.created_at}else if((s.event==="committed"||s.event==="commented")&&"author"in s){const e="author"in s?s.author:null;const t="committer"in s?s.committer:null;if(e||t){n.push({event:a,created_at:s.author.date,author:s.author.email});continue}}if(e&&t.includes(e)){n.push({event:a,created_at:i,author:o})}}return n.sort(((e,t)=>{if(!e.created_at||!t.created_at){return 0}return DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()}))}const ls="Ubiquity";function createStructuredMetadata(e,t){let r,n;if(t){r=t.logMessage;n=t.metadata}const s=JSON.stringify(n,null,2);const o=(new Error).stack?.split("\n")[2]??"";const i=o.match(/at (\S+)/)?.[1]??"";const a=`\x3c!-- ${ls} - ${e} - ${i} - ${n?.revision}`;let c;const u=["```json",s,"```"].join("\n");const A=[a,s,"--\x3e"].join("\n");if(r?.type==="fatal"){c=[u,A].join("\n")}else{c=A}return c}async function getCommentsFromMetadata(e,t,r,n,s){const{octokit:o}=e;const i=new RegExp(`\x3c!-- ${ls} - ${s} - \\S+ - [\\s\\S]*?--\x3e`);return await o.paginate(o.rest.issues.listComments,{owner:r,repo:n,issue_number:t},(e=>e.data.filter((e=>e.performed_via_github_app&&e.body&&e.user?.type==="Bot"&&i.test(e.body)))))}async function unassignUserFromIssue(e,t){const{logger:r,config:n}=e;if(n.disqualification<=0){r.info("The unassign threshold is <= 0, won't unassign users.")}else{await removeAllAssignees(e,t)}}async function remindAssigneesForIssue(e,t){const{logger:r,config:n}=e;const s=parseIssueUrl(t.html_url);const o=!!(await collectLinkedPullRequests(e,s)).length;if(n.warning<=0){r.info("The reminder threshold is <= 0, won't send any reminder.")}else if(n.pullRequestRequired&&!o){await unassignUserFromIssue(e,t)}else{r.info(`Passed the reminder threshold on ${t.html_url}, sending a reminder.`);await remindAssignees(e,t)}}async function remindAssignees(e,t){const{octokit:r,logger:n,config:s}=e;const{repo:o,owner:i,issue_number:a}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const c=t.assignees.map((e=>e?.login)).filter((e=>!!e)).join(", @");const u=n.info(`@${c}, this task has been idle for a while. Please provide an update.\n\n`,{taskAssignees:t.assignees.map((e=>e?.id))});const A=createStructuredMetadata(rs,u);if(!s.pullRequestRequired){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}else{const t=await collectLinkedPullRequests(e,{repo:o,owner:i,issue_number:a});let s=false;for(const e of t){const{owner:t,repo:o,issue_number:i}=parseIssueUrl(e.url);try{await r.rest.issues.createComment({owner:t,repo:o,issue_number:i,body:[u.logMessage.raw,A].join("\n")})}catch(t){n.error(`Could not post to ${e.url} will post to the issue instead.`,{e:t});s=true}}if(s){await r.rest.issues.createComment({owner:i,repo:o,issue_number:a,body:[u.logMessage.raw,A].join("\n")})}}return true}async function removeAllAssignees(e,t){const{octokit:r,logger:n}=e;const{repo:s,owner:o,issue_number:i}=parseIssueUrl(t.html_url);if(!t?.assignees?.length){n.error(`Missing Assignees from ${t.html_url}`);return false}const a=t.assignees.map((e=>e?.login)).filter((e=>!!e));const c=n.info(`Passed the deadline and no activity is detected, removing assignees: ${a.map((e=>`@${e}`)).join(", ")}.`);const u=createStructuredMetadata(ns,c);await r.rest.issues.createComment({owner:o,repo:s,issue_number:i,body:[c.logMessage.raw,u].join("\n")});await r.rest.issues.removeAssignees({owner:o,repo:s,issue_number:i,assignees:a});return true}var ds=__nccwpck_require__(70744);var ps=__nccwpck_require__.n(ds);async function getTaskAssignmentDetails(e,t,r){const{logger:n,octokit:s}=e;const o=await s.paginate(s.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const i=o.filter((e=>e.event==="assigned")).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis()));const a=i.find((e=>e.actor?.type==="User"));const c=i.find((e=>e.actor?.type==="Bot"));let u=a||c;if(a&&c&&DateTime.fromISO(a.created_at)>DateTime.fromISO(c.created_at)){u=a}else{u=c}const A={startPlusLabelDuration:DateTime.fromISO(r.created_at).toISO()||"",taskAssignees:r.assignees?r.assignees.map((e=>e.id)):r.assignee?[r.assignee.id]:[]};if(!A.taskAssignees?.length){n.error(`Missing Assignees from ${r.html_url}`);return false}const l=parseTimeLabel(r.labels);if(l===0){}else if(l<0||!l){n.error(`Invalid deadline found on ${r.html_url}`);return false}A.startPlusLabelDuration=DateTime.fromISO(u?.created_at||r.created_at).plus({milliseconds:l}).toISO()||"";return A}function parseTimeLabel(e){let t=0;for(const r of e){let e="";if(typeof r==="string"){e=r}else{e=r.name||""}if(e.startsWith("Time:")){const r=e.match(/Time: <(\d+) (\w+)/i);if(!r){return 0}const[n,s,o]=r;t=ps()(`${s} ${o}`)}if(t){break}}return t}const getMostRecentActivityDate=(e,t)=>t&&t>e?t:e;async function updateTaskReminder(e,t,r){const{octokit:n,logger:s,config:{eventWhitelist:o,warning:i,disqualification:a}}=e;const c=await getTaskAssignmentDetails(e,t,r);const u=DateTime.local();if(!c)return;const A=await n.paginate(n.rest.issues.listEvents,{owner:t.owner.login,repo:t.name,issue_number:r.number});const l=A.filter((e=>e.event==="assigned"&&c.taskAssignees.includes(e.actor.id))).sort(((e,t)=>DateTime.fromISO(t.created_at).toMillis()-DateTime.fromISO(e.created_at).toMillis())).shift();if(!l){s.error(`Failed to update activity for ${r.html_url}, there is no assigned event.`);return}const d=(await getAssigneesActivityForIssue(e,r,c.taskAssignees)).filter((e=>o.includes(e.event))).shift();const p=DateTime.fromISO(l.created_at);const g=d?.created_at?DateTime.fromISO(d.created_at):undefined;let h=getMostRecentActivityDate(p,g);const m=(await collectLinkedPullRequests(e,{issue_number:r.number,repo:t.name,owner:t.owner.login})).map((e=>e.url));m.push(r.html_url);const E=await Promise.all(m.map((async t=>{const{issue_number:r,owner:n,repo:s}=parseIssueUrl(t);const o=await getCommentsFromMetadata(e,r,n,s,rs);return o.filter((e=>DateTime.fromISO(e.created_at)>h))})));const y=E.flat().shift();s.debug(`Handling metadata and deadline for ${r.html_url}`,{now:u.toLocaleString(DateTime.DATETIME_MED),assignedDate:DateTime.fromISO(l.created_at).toLocaleString(DateTime.DATETIME_MED),lastReminderComment:y?DateTime.fromISO(y.created_at).toLocaleString(DateTime.DATETIME_MED):"none",mostRecentActivityDate:h.toLocaleString(DateTime.DATETIME_MED)});const I=a-i;if(y){const t=DateTime.fromISO(y.created_at);h=t>h?t:h;if(h.plus({milliseconds:I})<=u){await unassignUserFromIssue(e,r)}else{s.info(`Reminder was sent for ${r.html_url} already, not beyond disqualification deadline yet.`)}}else{if(h.plus({milliseconds:i})<=u){await remindAssigneesForIssue(e,r)}else{s.info(`Nothing to do for ${r.html_url}, still within due-time.`)}}}async function watchUserActivity(e){const{logger:t}=e;const r=await getWatchedRepos(e);if(!r?.length){return{message:t.info("No watched repos have been found, no work to do.").logMessage.raw}}await Promise.all(r.map((async r=>{t.debug(`> Watching user activity for repo: ${r.name} (${r.html_url})`);await updateReminders(e,r)})));return{message:"OK"}}async function updateReminders(e,t){const{logger:r,octokit:n,payload:s}=e;const o=s.repository.owner?.login;if(!o){throw new Error("No owner found in the payload")}const i=await n.paginate(n.rest.issues.listForRepo,{owner:o,repo:t.name,per_page:100,state:"open"});await Promise.all(i.map((async n=>{if(n.draft||n.pull_request||n.locked||n.state!=="open"){r.debug(`Skipping issue ${n.html_url} due to the issue not meeting the right criteria.`,{draft:n.draft,pullRequest:!!n.pull_request,locked:n.locked,state:n.state});return}if(n.assignees?.length||n.assignee){r.debug(`Checking assigned issue: ${n.html_url}`);await updateTaskReminder(e,t,n)}else{r.info(`Skipping issue ${n.html_url} because no user is assigned.`)}})))}async function run(e){e.logger.debug("Will run with the following configuration:",{configuration:e.config});return watchUserActivity(e)}function thresholdType(e){return Oe.Transform(Oe.String(e)).Decode((e=>{const t=ps()(e);if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t})).Encode((e=>{const t=ps()(e,{long:true});if(t===undefined){throw new TypeBoxError(`Invalid threshold value: [${e}]`)}return t}))}const fs=["pull_request.review_requested","pull_request.ready_for_review","pull_request_review_comment.created","issue_comment.created","push"];function mapWebhookToEvent(e){const t=new Map([["pull_request.review_requested","review_requested"],["pull_request.ready_for_review","ready_for_review"],["pull_request_review_comment.created","commented"],["issue_comment.created","commented"],["push","committed"]]);return t.get(e)}const gs=Oe.Union(fs.map((e=>Oe.Literal(e))));const hs=Oe.Object({warning:thresholdType({default:"3.5 days"}),watch:Oe.Object({optOut:Oe.Array(Oe.String(),{default:[]})},{default:{}}),disqualification:thresholdType({default:"7 days"}),pullRequestRequired:Oe.Boolean({default:true}),eventWhitelist:Oe.Transform(Oe.Array(Oe.String(),{default:fs})).Decode((e=>{const t=Object.values(fs);let r=[];for(const n of e){if(!t.includes(n)){throw new TypeBoxError(`Invalid event [${n}] (unknown event)`)}const e=mapWebhookToEvent(n);if(!e){throw new TypeBoxError(`Invalid event [${n}] (unmapped event)`)}if(!r.includes(e)){r.push(e)}}return r})).Encode((e=>e.map((e=>{const t=new Map([["review_requested","pull_request.review_requested"],["ready_for_review","pull_request.ready_for_review"],["commented","pull_request_review_comment.created"],["commented","issue_comment.created"],["committed","push"]]);return t.get(e)}))))},{default:{}});const ms=Oe.Object({});createActionsPlugin((e=>run(e)),{envSchema:ms,settingsSchema:hs,logLevel:process.env.LOG_LEVEL||i.INFO,postCommentOnError:false,...process.env.KERNEL_PUBLIC_KEY&&{kernelPublicKey:process.env.KERNEL_PUBLIC_KEY}}).catch(console.error); \ No newline at end of file